Implement functional menu system

- Add button-driven menu with multiple options
- Wire up A button to add all Korok pins
- Connect B button to count existing pins
- Auto-initialize save system on startup
- Cleaner main loop without manual save testing
This commit is contained in:
badblocks 2023-05-19 15:33:48 -07:00
parent 1d5c741bd3
commit 4ece8c1922
No known key found for this signature in database
2 changed files with 38 additions and 9 deletions

View file

@ -15,12 +15,13 @@ int main(int argc, char **argv)
PadState pad;
padInitializeDefault(&pad);
// Initialize save system
openSave();
processSave();
// Initialize UI
initUI();
printMessage("Press A to test save loading\n");
printMessage("Press + to exit\n");
bool exit = false;
// Main loop
@ -31,11 +32,6 @@ int main(int argc, char **argv)
exit = handleButtonPress(kDown);
if (kDown & HidNpadButton_A) {
openSave();
processSave();
}
consoleUpdate(NULL);
}