mirror of
https://github.com/Team-Neptune/DeepSea-Updater.git
synced 2024-11-23 12:29:52 +00:00
It would definately be a good idea to test what I push out. Maybe...
This commit is contained in:
parent
7309cdb438
commit
71ee1ffdce
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user