From 8615c7e04e9eba0ae098f25aee276fd730e5e87e Mon Sep 17 00:00:00 2001 From: William Katz Date: Sun, 6 Jun 2021 18:27:37 -0700 Subject: [PATCH 1/8] Update README.md --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f9986ad..122cf0b 100644 --- a/README.md +++ b/README.md @@ -76,18 +76,14 @@ 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` -## FAQ - -some frequently asked questions are - ## Contributions -[Doggo](https://github.com/FearlessDoggo21) Logs Optimized +[Doggo](https://github.com/FearlessDoggo21) : Logs Optimized ## Features ### Performance - +- In memory database instead of on disk - **NOT** written in Lua, like a OC/CC implementation - written in **C++**, arguably the fastest language - **multi-threaded** From 5c0fafa95194b2228d4c85e85eb300ef4bbde232 Mon Sep 17 00:00:00 2001 From: William Katz Date: Sun, 6 Jun 2021 20:49:48 -0700 Subject: [PATCH 2/8] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 122cf0b..176849c 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,12 @@ Go to `{ip}/BankF/help` to see the bank's methods (also found in releases as hel ## Contributions -[Doggo](https://github.com/FearlessDoggo21) : Logs Optimized +| Name | Work | +| :--- | --- | +| [Expand](https://github.com/Expand-sys) | Frontend | +| [React](https://github.com/Reactified) | In-Game connected services | +| [Doggo](https://github.com/FearlessDoggo21) | Logs Optimized | + ## Features From 80ef1d54a7e8af3619d1e034f71aebcec9a54054 Mon Sep 17 00:00:00 2001 From: William Katz Date: Sun, 6 Jun 2021 23:50:59 -0700 Subject: [PATCH 3/8] Made contribs more precise --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 176849c..4d0c98e 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,8 @@ Go to `{ip}/BankF/help` to see the bank's methods (also found in releases as hel | Name | Work | | :--- | --- | | [Expand](https://github.com/Expand-sys) | Frontend | -| [React](https://github.com/Reactified) | In-Game connected services | -| [Doggo](https://github.com/FearlessDoggo21) | Logs Optimized | +| [React](https://github.com/Reactified) | CC API, Shops, and ATM | +| [Doggo](https://github.com/FearlessDoggo21) | Logs loading/adding Optimized | ## Features From 3ba275d8e4af34d5591f55e955e792160e85bf59 Mon Sep 17 00:00:00 2001 From: William Katz Date: Sun, 6 Jun 2021 23:56:18 -0700 Subject: [PATCH 4/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d0c98e..7bd5769 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Go to `{ip}/BankF/help` to see the bank's methods (also found in releases as hel | Name | Work | | :--- | --- | | [Expand](https://github.com/Expand-sys) | Frontend | -| [React](https://github.com/Reactified) | CC API, Shops, and ATM | +| [React](https://github.com/Reactified) | CC {API, Shops, and ATM} | | [Doggo](https://github.com/FearlessDoggo21) | Logs loading/adding Optimized | From d4d34d11ff4536d6ed1967eda20d12faa7b615e9 Mon Sep 17 00:00:00 2001 From: William Katz Date: Mon, 7 Jun 2021 00:18:04 -0700 Subject: [PATCH 5/8] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7bd5769..77e7130 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,12 @@ 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` -## Contributions +## FAQ +**Q:** how is money initially injected into the economy +**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 +Thank you to the contributors | Name | Work | | :--- | --- | | [Expand](https://github.com/Expand-sys) | Frontend | From 983d11aace3f5d152cb482863eee0b4adaf74ec1 Mon Sep 17 00:00:00 2001 From: William Katz Date: Mon, 7 Jun 2021 00:18:45 -0700 Subject: [PATCH 6/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 77e7130..5c3c0c9 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ Go to `{ip}/BankF/help` to see the bank's methods (also found in releases as hel ## FAQ **Q:** how is money initially injected into the economy + **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 From 7afa380d67c635851caee2f3d0c0cc21edb2dfb5 Mon Sep 17 00:00:00 2001 From: William Katz Date: Mon, 7 Jun 2021 02:17:06 -0700 Subject: [PATCH 7/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c3c0c9..f54bdab 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Go to `{ip}/BankF/help` to see the bank's methods (also found in releases as hel **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 | | :--- | --- | From 552c2deca84d0588d3038c9d3fe6419582d5a0ce Mon Sep 17 00:00:00 2001 From: doggo Date: Mon, 7 Jun 2021 09:03:04 -0500 Subject: [PATCH 8/8] Changed initial check to all static assertions --- include/log_consts.hpp | 4 ++-- main.cpp | 12 +++--------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/include/log_consts.hpp b/include/log_consts.hpp index cd84770..b0c40bd 100644 --- a/include/log_consts.hpp +++ b/include/log_consts.hpp @@ -1,5 +1,5 @@ #pragma once -// `max_log_size` must be divisible by `pre_log_size` -constexpr unsigned max_log_size = 100; // Setting to 0 does not compile logging +// Setting both values to 0 does not compile logging +constexpr unsigned max_log_size = 100; constexpr unsigned pre_log_size = 10; diff --git a/main.cpp b/main.cpp index 7f85baf..a013878 100644 --- a/main.cpp +++ b/main.cpp @@ -22,15 +22,9 @@ void SaveSig(int s) int main(int argc, char **argv) { - static_assert(pre_log_size <= max_log_size, "`max_log_size` must be larger than `pre_log_size`."); - if constexpr (max_log_size && pre_log_size) - { - if (max_log_size % pre_log_size) - { - std::cerr << "`max_log_size` must be a multiple of `pre_log_size`."; - return 0; - } - } + static_assert(bool(max_log_size) == bool(pre_log_size), "You must either utilize both or neither logging variables.\n"); + 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 (argc != 4) {