MCPcopy Create free account
hub / github.com/Stewmath/GameYob / getMenuOption

Function getMenuOption

arm9/source/console.cpp:686–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684
685
686int getMenuOption(const char* optionName) {
687 for (int i=0; i<numMenus; i++) {
688 for (int j=0; j<menuList[i].numOptions; j++) {
689 if (strcasecmp(optionName, menuList[i].options[j].name) == 0) {
690 return menuList[i].options[j].selection;
691 }
692 }
693 }
694 return 0;
695}
696void setMenuOption(const char* optionName, int value) {
697 for (int i=0; i<numMenus; i++) {
698 for (int j=0; j<menuList[i].numOptions; j++) {

Callers 1

gameboyCheckInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected