mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-23 04:41:12 +00:00
fs.mitm: Improve configuration refresh file semantics.
This commit is contained in:
parent
db97dd8d75
commit
e1d884960d
1 changed files with 2 additions and 4 deletions
|
@ -244,7 +244,7 @@ Result Utils::GetKeysDown(u64 *keys) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Utils::HasOverrideButton(u64 tid) {
|
bool Utils::HasOverrideButton(u64 tid) {
|
||||||
if (tid < 0x0100000000010000ULL) {
|
if (tid < 0x0100000000010000ULL || !IsSdInitialized()) {
|
||||||
/* Disable button override disable for non-applications. */
|
/* Disable button override disable for non-applications. */
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -332,9 +332,7 @@ void Utils::RefreshConfiguration() {
|
||||||
std::fill(g_config_ini_data, g_config_ini_data + 0x800, 0);
|
std::fill(g_config_ini_data, g_config_ini_data + 0x800, 0);
|
||||||
size_t r_s;
|
size_t r_s;
|
||||||
fsFileRead(&config_file, 0, g_config_ini_data, size, &r_s);
|
fsFileRead(&config_file, 0, g_config_ini_data, size, &r_s);
|
||||||
|
fsFileClose(&config_file);
|
||||||
|
|
||||||
ini_parse_string(g_config_ini_data, FsMitMIniHandler, NULL);
|
ini_parse_string(g_config_ini_data, FsMitMIniHandler, NULL);
|
||||||
|
|
||||||
|
|
||||||
fsFileClose(&config_file);
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue