mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
41 lines
No EOL
1.1 KiB
C++
41 lines
No EOL
1.1 KiB
C++
#pragma once
|
|
|
|
// Setting both values to 0 does not compile logging (useful for if disk/memory is very valuable)
|
|
#define MAX_LOG_SIZE @MAX_LOG_SIZE_VAL@
|
|
#define PRE_LOG_SIZE @PRE_LOG_SIZE_VAL@
|
|
|
|
//default to minecraft usernames
|
|
constexpr unsigned min_name_size = 3;
|
|
constexpr unsigned max_name_size = 16;
|
|
|
|
constexpr const char *users_location = @USER_SAVE@;
|
|
constexpr const char *config_location = @DROGON_CONFIG@;
|
|
|
|
// Returns money to an account on deletion (useful if you dont want any money to leave the economy)
|
|
#define RETURN_ON_DEL @RETURN_ON_DEL_VAL@
|
|
constexpr const char *return_account = @RETURN_ON_DEL_NAME_VAL@;
|
|
|
|
/*
|
|
if true, when frequency is hit AND changes have happened then save
|
|
pros
|
|
LOW disk usage
|
|
cons
|
|
LOW atomic overhead
|
|
if false, when frequency is hit save
|
|
pros
|
|
ZERO atomic overhead
|
|
cons
|
|
HIGH disk usage
|
|
*/
|
|
#define CONSERVATIVE_DISK_SAVE @CONSERVATIVE_DISK_SAVE_VAL@
|
|
|
|
/*
|
|
example, when set to 2
|
|
version 1 will not work
|
|
version 2 will work
|
|
version 3 will work
|
|
etc
|
|
*/
|
|
#define API_VERSION @API_VERSION_VAL@
|
|
|
|
#define MULTI_THREADED @MULTI_THREADED_VAL@ |