mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 00:39:02 +00:00
Crash fix attempt - Successfully! (#32)
* Do not build here, since this could potential crash more things. * Crash fix! Co-authored-by: StackZ <47382115+SuperSaiyajinStackZ@users.noreply.github.com>
This commit is contained in:
@@ -380,8 +380,8 @@ void ScriptBrowse::Logic(u32 hDown, u32 hHeld, touchPosition touch) {
|
||||
DropDownLogic(hDown, hHeld, touch);
|
||||
} else {
|
||||
if ((hDown & KEY_B) || (hDown & KEY_TOUCH && touching(touch, arrowPos[2]))) {
|
||||
infoJson.clear();
|
||||
Gui::screenBack(Config::fading);
|
||||
return;
|
||||
}
|
||||
if (mode == 0) {
|
||||
if ((hHeld & KEY_DOWN && !keyRepeatDelay) || (hDown & KEY_TOUCH && touching(touch, arrowPos[1]))) {
|
||||
@@ -522,6 +522,7 @@ void ScriptBrowse::Logic(u32 hDown, u32 hHeld, touchPosition touch) {
|
||||
} else {
|
||||
if (hDown & KEY_B) {
|
||||
Gui::screenBack(Config::fading);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -266,7 +266,7 @@ void Settings::MiscSettingsLogic(u32 hDown, u32 hHeld, touchPosition touch) {
|
||||
Config::keyDelay = Input::getUint(255, Lang::get("ENTER_KEY_DELAY"));
|
||||
changesMade = true;
|
||||
} else if (Selection == 3) {
|
||||
/*if (Config::fading) {
|
||||
if (Config::fading) {
|
||||
if (Msg::promptMsg(Lang::get("TOGGLE_FADE_DISABLE"))) {
|
||||
Config::fading = false;
|
||||
Msg::DisplayWarnMsg(Lang::get("DISABLED"));
|
||||
@@ -278,7 +278,7 @@ void Settings::MiscSettingsLogic(u32 hDown, u32 hHeld, touchPosition touch) {
|
||||
Msg::DisplayWarnMsg(Lang::get("ENABLED"));
|
||||
changesMade = true;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -296,7 +296,7 @@ void Settings::MiscSettingsLogic(u32 hDown, u32 hHeld, touchPosition touch) {
|
||||
} else if (touching(touch, mainButtons2[2])) {
|
||||
Config::keyDelay = Input::getUint(255, Lang::get("ENTER_KEY_DELAY"));
|
||||
changesMade = true;
|
||||
} /*else if (touching(touch, mainButtons2[3])) {
|
||||
} else if (touching(touch, mainButtons2[3])) {
|
||||
if (Config::fading) {
|
||||
if (Msg::promptMsg(Lang::get("TOGGLE_FADE_DISABLE"))) {
|
||||
Config::fading = false;
|
||||
@@ -310,7 +310,7 @@ void Settings::MiscSettingsLogic(u32 hDown, u32 hHeld, touchPosition touch) {
|
||||
changesMade = true;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
if ((hDown & KEY_B || hDown & KEY_L) || (hDown & KEY_TOUCH && touching(touch, arrowPos[2]))) {
|
||||
|
||||
@@ -208,11 +208,11 @@ void Config::load() {
|
||||
keyDelay = getInt("KEY_DELAY");
|
||||
}
|
||||
|
||||
/* if(!configJson.contains("SCREEN_FADE")) {
|
||||
if(!configJson.contains("SCREEN_FADE")) {
|
||||
fading = false;
|
||||
} else {
|
||||
fading = getBool("SCREEN_FADE");
|
||||
}*/
|
||||
}
|
||||
|
||||
fclose(file);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user