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

Function setMenuOption

arm9/source/console.cpp:696–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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++) {
699 if (strcasecmp(optionName, menuList[i].options[j].name) == 0) {
700 menuList[i].options[j].selection = value;
701 menuList[i].options[j].function(value);
702 return;
703 }
704 }
705 }
706}
707void enableMenuOption(const char* optionName) {
708 for (int i=0; i<numMenus; i++) {
709 for (int j=0; j<menuList[i].numOptions; j++) {

Callers 4

gameboyCheckInputFunction · 0.85
nifiEnableFuncFunction · 0.85
printerEnableFuncFunction · 0.85
setSingleScreenFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected