mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
Merge branch 'main' of https://github.com/EntireTwix/CCash-2.0
This commit is contained in:
commit
fa9304a64e
2 changed files with 9 additions and 10 deletions
12
README.md
12
README.md
|
|
@ -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
|
||||
|
|
|
|||
7
main.cpp
7
main.cpp
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue