This commit is contained in:
EntireTwix 2021-04-03 01:07:44 -07:00
commit fa9304a64e
2 changed files with 9 additions and 10 deletions

View file

@ -31,17 +31,9 @@ sudo ./bank <admin password> <saving frequency in minutes> <run in background (1
- OpenSSL (HTTPS)
- Very difficult to tamper with compared to an in-game implementation of a bank
- Auto-Saving, Save on close, are in place
- Auto-Saving and Save on close are in place
### Accessibility
- able to be used millions of blocks away, across dimensions, servers, vanilla or modded, or outside of the game entirely
# Improvements from 1.0
- frequency/on-close saving in contrast to every change resulting in a Save() call
- multi-threaded
- near infinite number of users rather then 2^16
- no account vs user distinction, it was complicating usage without much gain
- OpenSSL
- a web based frontend
- Web front-end

View file

@ -1,6 +1,8 @@
#include <iostream>
#include <chrono>
#include <thread>
#include <sys/types.h>
#include <unistd.h>
#include "bank.hpp"
int main(int argc, char **argv)
@ -15,6 +17,11 @@ int main(int argc, char **argv)
std::cerr << "run in background state must be 1 or 0\n";
return 0;
}
if (geteuid() != 0)
{
std::cerr << "ERROR: CCash MUST be ran as root\n";
return 0;
}
//Loading users from users.json
Bank.Load();