Пример #1
0
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();
	}
}
Пример #2
0
void parseSaveStub (git_uint32 * pc, int mode)
{
    parseStub (pc, mode, label_save_stub_discard);
}
Пример #3
0
void parseUndoStub (git_uint32 * pc, int mode)
{
    parseStub (pc, mode, label_undo_stub_discard);
}
Пример #4
0
void parseCallStub (git_uint32 * pc, int mode)
{
    parseStub (pc, mode, label_call_stub_discard);
}