Implement the DEBUG_ACCESS_OPTIONS when attempting to read from config (for debugging purposes). Release Build 10915.
This commit is contained in:
parent
68744adf54
commit
bc31ba5862
@ -188,7 +188,11 @@ AiL::AiL(bool testingMode){
|
||||
|
||||
void InitializeGameConfigurations(){
|
||||
DATA.Reset();
|
||||
|
||||
utils::datafile::Read(DATA,"assets/config/configuration.txt");
|
||||
|
||||
utils::datafile::DEBUG_ACCESS_OPTIONS="debug_access_options"_I;
|
||||
|
||||
std::filesystem::create_directories("save_file_path"_S);
|
||||
|
||||
_DEBUG_MAP_LOAD_INFO=bool("debug_map_load_info"_I);
|
||||
@ -271,8 +275,6 @@ void InitializeGameConfigurations(){
|
||||
|
||||
std::string MINIMAP_CONFIG = CONFIG_PATH + "minimap_config"_S;
|
||||
utils::datafile::Read(DATA,MINIMAP_CONFIG);
|
||||
|
||||
utils::datafile::DEBUG_ACCESS_OPTIONS="debug_access_options"_I;
|
||||
}
|
||||
|
||||
bool AiL::OnUserCreate(){
|
||||
|
@ -39,7 +39,7 @@ All rights reserved.
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 2
|
||||
#define VERSION_PATCH 3
|
||||
#define VERSION_BUILD 10911
|
||||
#define VERSION_BUILD 10915
|
||||
|
||||
#define stringify(a) stringify_(a)
|
||||
#define stringify_(a) #a
|
||||
|
@ -140,7 +140,7 @@ location_font_size = Habbo,24
|
||||
encrypted_font_size = Unknown,16
|
||||
|
||||
# Whether or not to show individual data accesses from config data structure.
|
||||
debug_access_options = 0
|
||||
debug_access_options = 1
|
||||
|
||||
# Shows menu navigation debug output
|
||||
debug_menu_navigation_info = 0
|
||||
|
@ -216,6 +216,7 @@ namespace olc::utils
|
||||
// Access a datafile via a convenient name - "root.node.something.property"
|
||||
inline datafile& GetProperty(const std::string& name)
|
||||
{
|
||||
if(DEBUG_ACCESS_OPTIONS)LOG(std::format("Accessing Property {}",name));
|
||||
size_t x = name.find_first_of('.');
|
||||
if (x != std::string::npos)
|
||||
{
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user