Implement the DEBUG_ACCESS_OPTIONS when attempting to read from config (for debugging purposes). Release Build 10915.

mac-build
sigonasr2 6 months ago
parent 68744adf54
commit bc31ba5862
  1. 6
      Adventures in Lestoria/AdventuresInLestoria.cpp
  2. 2
      Adventures in Lestoria/Version.h
  3. 2
      Adventures in Lestoria/assets/config/configuration.txt
  4. 1
      Adventures in Lestoria/olcUTIL_DataFile.h
  5. BIN
      x64/Release/Adventures in Lestoria.exe

@ -188,7 +188,11 @@ AiL::AiL(bool testingMode){
void InitializeGameConfigurations(){ void InitializeGameConfigurations(){
DATA.Reset(); DATA.Reset();
utils::datafile::Read(DATA,"assets/config/configuration.txt"); 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); std::filesystem::create_directories("save_file_path"_S);
_DEBUG_MAP_LOAD_INFO=bool("debug_map_load_info"_I); _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; std::string MINIMAP_CONFIG = CONFIG_PATH + "minimap_config"_S;
utils::datafile::Read(DATA,MINIMAP_CONFIG); utils::datafile::Read(DATA,MINIMAP_CONFIG);
utils::datafile::DEBUG_ACCESS_OPTIONS="debug_access_options"_I;
} }
bool AiL::OnUserCreate(){ bool AiL::OnUserCreate(){

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 2 #define VERSION_MINOR 2
#define VERSION_PATCH 3 #define VERSION_PATCH 3
#define VERSION_BUILD 10911 #define VERSION_BUILD 10915
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

@ -140,7 +140,7 @@ location_font_size = Habbo,24
encrypted_font_size = Unknown,16 encrypted_font_size = Unknown,16
# Whether or not to show individual data accesses from config data structure. # 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 # Shows menu navigation debug output
debug_menu_navigation_info = 0 debug_menu_navigation_info = 0

@ -216,6 +216,7 @@ namespace olc::utils
// Access a datafile via a convenient name - "root.node.something.property" // Access a datafile via a convenient name - "root.node.something.property"
inline datafile& GetProperty(const std::string& name) inline datafile& GetProperty(const std::string& name)
{ {
if(DEBUG_ACCESS_OPTIONS)LOG(std::format("Accessing Property {}",name));
size_t x = name.find_first_of('.'); size_t x = name.find_first_of('.');
if (x != std::string::npos) if (x != std::string::npos)
{ {

Loading…
Cancel
Save