mirror of
https://github.com/wiiu-env/EnvironmentLoader.git
synced 2024-11-01 04:55:05 +01:00
Fix clearing the default environment
This commit is contained in:
parent
9b86283cfd
commit
fb5f06064e
@ -359,6 +359,9 @@ std::string EnvironmentSelectionScreen(const std::map<std::string, std::string>
|
|||||||
free(screenBuffer);
|
free(screenBuffer);
|
||||||
|
|
||||||
if (autoBoot != autobootIndex) {
|
if (autoBoot != autobootIndex) {
|
||||||
|
if (autoBoot == -1) {
|
||||||
|
writeFileContent(AUTOBOOT_CONFIG_PATH, "-1");
|
||||||
|
} else {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (auto const&[key, val]: payloads) {
|
for (auto const&[key, val]: payloads) {
|
||||||
if (i == autoBoot) {
|
if (i == autoBoot) {
|
||||||
@ -369,6 +372,7 @@ std::string EnvironmentSelectionScreen(const std::map<std::string, std::string>
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (auto const&[key, val]: payloads) {
|
for (auto const&[key, val]: payloads) {
|
||||||
|
Loading…
Reference in New Issue
Block a user