CSimpleIniCaseA *getIniFile() { static bool inited = false; static CSimpleIniCaseA ini; if (inited == false) { ini.SetUnicode(true); ini.LoadFile(DEF_CONFIG_NAME); inited = true; } return &ini; }
//TODO: make thread safe/remove static singleton CSimpleIniCaseA *getIniFile() { static bool inited = false; static CSimpleIniCaseA ini; if (inited == false) { ini.SetUnicode(true); ini.LoadFile(std::string(rPlatform::getConfigDir() + DEF_CONFIG_NAME).c_str()); inited = true; } return &ini; }