void GameStateConfigBase::readConfig() { //Load the menu configuration from file FileParser infile; if (infile.open("menus/config.txt")) { while (infile.next()) { if (parseKeyButtons(infile)) continue; int x1 = popFirstInt(infile.val); int y1 = popFirstInt(infile.val); int x2 = popFirstInt(infile.val); int y2 = popFirstInt(infile.val); if (parseKey(infile, x1, y1, x2, y2)) continue; else if (parseStub(infile)) continue; else { infile.error("GameStateConfigBase: '%s' is not a valid key.", infile.key.c_str()); } } infile.close(); } }
void parseSaveStub (git_uint32 * pc, int mode) { parseStub (pc, mode, label_save_stub_discard); }
void parseUndoStub (git_uint32 * pc, int mode) { parseStub (pc, mode, label_undo_stub_discard); }
void parseCallStub (git_uint32 * pc, int mode) { parseStub (pc, mode, label_call_stub_discard); }