Do NOT allow fade effects for now.

This commit is contained in:
StackZ
2020-05-27 14:38:14 +02:00
parent a320b5770e
commit 8a16751a8f
2 changed files with 11 additions and 11 deletions
+7 -7
View File
@@ -55,7 +55,7 @@ int Config::notFound;
int Config::future;
int Config::Button;
int Config::keyDelay = 5;
bool Config::fading = true;
bool Config::fading = false;
nlohmann::json configJson;
extern bool changesMade;
@@ -208,11 +208,11 @@ void Config::load() {
keyDelay = getInt("KEY_DELAY");
}
if(!configJson.contains("SCREEN_FADE")) {
fading = true;
/* if(!configJson.contains("SCREEN_FADE")) {
fading = false;
} else {
fading = getBool("SCREEN_FADE");
}
}*/
fclose(file);
} else {
@@ -237,9 +237,9 @@ void Config::load() {
uptodate = C2D_Color32(0xa5, 0xdd, 0x81, 255);
notFound = C2D_Color32(255, 128, 0, 255);
future = C2D_Color32(255, 255, 0, 255);
Button = C2D_Color32(0, 0, 50, 255);
Button = C2D_Color32(0, 0, 50, 255);
keyDelay = 5;
fading = true;
fading = false;
}
}
@@ -301,7 +301,7 @@ void Config::initializeNewConfig() {
setInt("FUTURE", C2D_Color32(255, 255, 0, 255));
setInt("BUTTON", C2D_Color32(0, 0, 50, 255));
setInt("KEY_DELAY", 5);
setBool("SCREEN_FADE", true);
setBool("SCREEN_FADE", false);
if(file) fwrite(configJson.dump(1, '\t').c_str(), 1, configJson.dump(1, '\t').size(), file);
fclose(file);