save battery levels to config

This commit is contained in:
Arisotura
2022-03-06 22:47:21 +01:00
parent 532b1c967a
commit 2eec033c72
6 changed files with 49 additions and 5 deletions

View File

@ -135,6 +135,10 @@ int MouseHideSeconds;
bool PauseLostFocus;
bool DSBatteryLevelOkay;
int DSiBatteryLevel;
bool DSiBatteryCharging;
const char* kConfigFile = "melonDS.ini";
@ -305,6 +309,10 @@ ConfigEntry ConfigFile[] =
{"MouseHideSeconds", 0, &MouseHideSeconds, 5},
{"PauseLostFocus", 1, &PauseLostFocus, false},
{"DSBatteryLevelOkay", 1, &DSBatteryLevelOkay, true},
{"DSiBatteryLevel", 0, &DSiBatteryLevel, 0xF},
{"DSiBatteryCharging", 1, &DSiBatteryCharging, true},
{"", -1, nullptr, 0}
};