mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-15 15:52:13 +11:00
35 lines
No EOL
1 KiB
C++
35 lines
No EOL
1 KiB
C++
#pragma once
|
|
|
|
// Setting to 0 does not compile logging (useful for if disk/memory is very valuable)
|
|
#define MAX_LOG_SIZE @MAX_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@
|
|
|
|
#define MULTI_THREADED @MULTI_THREADED_VAL@
|
|
|
|
#define ADD_USER_OPEN @ADD_USER_OPEN_VAL@
|
|
|
|
#define USE_DEPRECATED_ENDPOINTS @USE_DEPRECATED_ENDPOINTS_VAL@ |