mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-18 09:02:14 +11:00
Merge branch 'main' of https://github.com/EntireTwix/CCash
This commit is contained in:
commit
b6b1c0b78e
3 changed files with 15 additions and 15 deletions
14
README.md
14
README.md
|
|
@ -77,17 +77,23 @@ Go to `{ip}/BankF/help` to see the bank's methods (also found in releases as hel
|
||||||
`**WARNING** : abruptly killing the program will result in data loss, use Close() method to close safely`
|
`**WARNING** : abruptly killing the program will result in data loss, use Close() method to close safely`
|
||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
|
**Q:** how is money initially injected into the economy
|
||||||
|
|
||||||
some frequently asked questions are
|
**A:** you can take any approach you want, one that I recommend is using a one way exchange via the CC ATM above to have players mine the initial currency, this rewards early adopters and has a sunk cost effect in that the resource is promptly burned
|
||||||
|
|
||||||
## Contributions
|
## [Contributions](https://github.com/EntireTwix/CCash/graphs/contributors)
|
||||||
|
Thank you to the contributors
|
||||||
|
| Name | Work |
|
||||||
|
| :--- | --- |
|
||||||
|
| [Expand](https://github.com/Expand-sys) | Frontend |
|
||||||
|
| [React](https://github.com/Reactified) | CC {API, Shops, and ATM} |
|
||||||
|
| [Doggo](https://github.com/FearlessDoggo21) | Logs loading/adding Optimized |
|
||||||
|
|
||||||
[Doggo](https://github.com/FearlessDoggo21) Logs Optimized
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
### Performance
|
### Performance
|
||||||
|
- In memory database instead of on disk
|
||||||
- **NOT** written in Lua, like a OC/CC implementation
|
- **NOT** written in Lua, like a OC/CC implementation
|
||||||
- written in **C++**, arguably the fastest language
|
- written in **C++**, arguably the fastest language
|
||||||
- **multi-threaded**
|
- **multi-threaded**
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// `max_log_size` must be divisible by `pre_log_size`
|
// Setting both values to 0 does not compile logging
|
||||||
constexpr unsigned max_log_size = 100; // Setting to 0 does not compile logging
|
constexpr unsigned max_log_size = 100;
|
||||||
constexpr unsigned pre_log_size = 10;
|
constexpr unsigned pre_log_size = 10;
|
||||||
|
|
|
||||||
12
main.cpp
12
main.cpp
|
|
@ -22,15 +22,9 @@ void SaveSig(int s)
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
static_assert(pre_log_size <= max_log_size, "`max_log_size` must be larger than `pre_log_size`.");
|
static_assert(bool(max_log_size) == bool(pre_log_size), "You must either utilize both or neither logging variables.\n");
|
||||||
if constexpr (max_log_size && pre_log_size)
|
static_assert(max_log_size >= pre_log_size, "The maximum log size must be larger than or equal to the amount preallocated.\n");
|
||||||
{
|
static_assert(!max_log_size || !(max_log_size % pre_log_size), "The maximum log size must be divisible by the preallocation size.\n");
|
||||||
if (max_log_size % pre_log_size)
|
|
||||||
{
|
|
||||||
std::cerr << "`max_log_size` must be a multiple of `pre_log_size`.";
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (argc != 4)
|
if (argc != 4)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue