MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / parseGame

Function parseGame

TheForceEngine/TFE_Settings/settings.cpp:1117–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115 }
1116
1117 void parseGame(const char* key, const char* value)
1118 {
1119 if (strcasecmp("game", key) == 0)
1120 {
1121 strcpy(s_game.game, value);
1122 // Get the game ID.
1123 s_game.id = Game_Count;
1124 for (u32 i = 0; i < Game_Count; i++)
1125 {
1126 if (strcasecmp(s_game.game, c_gameName[i]) == 0)
1127 {
1128 s_game.id = GameID(i);
1129 break;
1130 }
1131 }
1132 }
1133 }
1134
1135 void appendSlash(char* path)
1136 {

Callers 1

parseIniFileFunction · 0.85

Calls 1

GameIDEnum · 0.85

Tested by

no test coverage detected