It would definately be a good idea to test what I push out. Maybe...

This commit is contained in:
Steven Mattera 2019-02-15 15:29:37 -05:00
parent 7309cdb438
commit 71ee1ffdce
2 changed files with 5 additions and 5 deletions

View File

@ -180,7 +180,7 @@ void ConfigManager::_performMigration() {
}
_removeSetting(CHANNEL_KEY, _cfg, CONFIG_FILENAME);
} else {
string channelString = string(channel);
string channelString = getChannel();
if (channelString != "stable" && channelString != "bleeding-edge") {
setChannel(CHANNEL_DEF);
}
@ -196,7 +196,7 @@ void ConfigManager::_performMigration() {
}
_removeSetting(BUNDLE_KEY, _cfg, CONFIG_FILENAME);
} else {
string bundleString = string(bundle);
string bundleString = getChannel();
if (bundleString != "kosmos" && bundleString != "atmosphere") {
setBundle(BUNDLE_DEF);
}

View File

@ -223,7 +223,7 @@ void FileManager::_cleanUpFiles(void * ptr) {
void FileManager::_applyNoGC(void * ptr) {
ThreadObj * threadObj = (ThreadObj *) ptr;
bool disabled = ConfigManager::getDisabledGameCart()
bool disabled = ConfigManager::getDisabledGameCart();
Ini * ini = Ini::parseFile(HEKATE_FILE);
for (auto const& section : ini->sections) {
@ -234,7 +234,7 @@ void FileManager::_applyNoGC(void * ptr) {
bool patchApplied = false;
for (auto const& option : section->options) {
if (option->key == "nogc") {
option->value = (disabled) ? "1" : "0"
option->value = (disabled) ? "1" : "0";
patchApplied = true;
break;
}
@ -248,7 +248,7 @@ void FileManager::_applyNoGC(void * ptr) {
}
}
ini->writeToFile(fileName);
ini->writeToFile(HEKATE_FILE);
delete ini;
mutexLock(&threadObj->mutexRequest);