Create config dir if it does not exist; Fixed maxMemFreq detection

This commit is contained in:
KazushiM
2022-10-31 17:22:05 +08:00
parent 6a1ac29733
commit 72a8421df6
4 changed files with 59 additions and 1 deletions

View File

@@ -47,6 +47,9 @@ Config::~Config()
Config *Config::CreateDefault()
{
if (R_FAILED(FileUtils::mkdir_p(FILE_CONFIG_DIR)))
ERROR_THROW("Cannot create " FILE_CONFIG_DIR);
return new Config(FILE_CONFIG_DIR "/config.ini");
}