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)
|
- OpenSSL (HTTPS)
|
||||||
- Very difficult to tamper with compared to an in-game implementation of a bank
|
- 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
|
### Accessibility
|
||||||
|
|
||||||
- able to be used millions of blocks away, across dimensions, servers, vanilla or modded, or outside of the game entirely
|
- able to be used millions of blocks away, across dimensions, servers, vanilla or modded, or outside of the game entirely
|
||||||
|
- Web front-end
|
||||||
# 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
|
|
||||||
|
|
|
||||||
7
main.cpp
7
main.cpp
|
|
@ -1,6 +1,8 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include "bank.hpp"
|
#include "bank.hpp"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
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";
|
std::cerr << "run in background state must be 1 or 0\n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if (geteuid() != 0)
|
||||||
|
{
|
||||||
|
std::cerr << "ERROR: CCash MUST be ran as root\n";
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
//Loading users from users.json
|
//Loading users from users.json
|
||||||
Bank.Load();
|
Bank.Load();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue