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

Function menuParseConfig

arm9/source/console.cpp:734–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

732}
733
734void menuParseConfig(const char* line) {
735 char* equalsPos = strchr(line, '=');
736 if (equalsPos == 0)
737 return;
738 *equalsPos = '\0';
739 const char* option = line;
740 const char* value = equalsPos+1;
741 int val = atoi(value);
742 for (int i=0; i<numMenus; i++) {
743 for (int j=0; j<menuList[i].numOptions; j++) {
744 if (strcasecmp(menuList[i].options[j].name, option) == 0 && menuList[i].options[j].numValues != 0) {
745 menuList[i].options[j].selection = val;
746 menuList[i].options[j].function(val);
747 return;
748 }
749 }
750 }
751}
752
753void menuPrintConfig(FILE* file) {
754 for (int i=0; i<numMenus; i++) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected