mirror of
https://github.com/wiiu-env/AutobootModule.git
synced 2024-11-29 05:54:16 +01:00
Fix saving the correct autoboot option
This commit is contained in:
parent
1281dd3c51
commit
f324dad6fe
@ -145,7 +145,6 @@ uint64_t getVWiiHBLTitleId() {
|
|||||||
} else {
|
} else {
|
||||||
DEBUG_FUNCTION_LINE_ERR("Failed to add FSAClient");
|
DEBUG_FUNCTION_LINE_ERR("Failed to add FSAClient");
|
||||||
}
|
}
|
||||||
DEBUG_FUNCTION_LINE_ERR("%016llX", titleId);
|
|
||||||
return titleId;
|
return titleId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,13 +181,13 @@ int32_t handleMenuScreen(std::string &configPath, int32_t autobootOptionInput, c
|
|||||||
|
|
||||||
free(screenBuffer);
|
free(screenBuffer);
|
||||||
|
|
||||||
int32_t selected = 0;
|
int32_t selected = -1;
|
||||||
int32_t autoboot = 0;
|
int32_t autoboot = -1;
|
||||||
// convert index to key
|
// convert index to key
|
||||||
if (selectedIndex > 0 && (uint32_t) selectedIndex < menu.size()) {
|
if (selectedIndex >= 0 && (uint32_t) selectedIndex < menu.size()) {
|
||||||
selected = std::next(menu.begin(), selectedIndex)->first;
|
selected = std::next(menu.begin(), selectedIndex)->first;
|
||||||
}
|
}
|
||||||
if (autobootIndex > 0 && (uint32_t) autobootIndex < menu.size()) {
|
if (autobootIndex >= 0 && (uint32_t) autobootIndex < menu.size()) {
|
||||||
autoboot = std::next(menu.begin(), autobootIndex)->first;
|
autoboot = std::next(menu.begin(), autobootIndex)->first;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user