1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-22 20:06:40 +00:00

fusee: accept non-zero rather than rejecting non-one for emummc enable

This commit is contained in:
Michael Scire 2021-10-16 12:26:17 -07:00
parent 64950dbd31
commit 7805a3624e

View file

@ -146,7 +146,7 @@ namespace ams::nxboot {
/* Handle individual fields. */ /* Handle individual fields. */
for (const auto &entry : section.kv_list) { for (const auto &entry : section.kv_list) {
if (std::strcmp(entry.key, "enabled") == 0) { if (std::strcmp(entry.key, "enabled") == 0) {
enabled = entry.value[0] == '1'; enabled = entry.value[0] != '0';
} else if (std::strcmp(entry.key, "id") == 0) { } else if (std::strcmp(entry.key, "id") == 0) {
id = ParseHexInteger(entry.value); id = ParseHexInteger(entry.value);
} else if (std::strcmp(entry.key, "sector") == 0) { } else if (std::strcmp(entry.key, "sector") == 0) {