diff options
Diffstat (limited to 'sword2')
-rw-r--r-- | sword2/sword2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp index faf0915664..926a90e91e 100644 --- a/sword2/sword2.cpp +++ b/sword2/sword2.cpp @@ -46,12 +46,12 @@ extern bool isSmartphone(); #endif struct Sword2GameSettings { - const char *name; + const char *gameid; const char *description; uint32 features; const char *detectname; GameSettings toGameSettings() const { - GameSettings dummy = { name, description, features }; + GameSettings dummy = { gameid, description, features }; return dummy; } }; @@ -67,7 +67,7 @@ static const Sword2GameSettings sword2_settings[] = { GameList Engine_SWORD2_gameList() { const Sword2GameSettings *g = sword2_settings; GameList games; - while (g->name) { + while (g->gameid) { games.push_back(g->toGameSettings()); g++; } @@ -82,7 +82,7 @@ DetectedGameList Engine_SWORD2_detectGames(const FSList &fslist) { // between the 'sword2' and 'sword2demo' targets. The current code // can't do that since they use the same detectname. - for (g = sword2_settings; g->name; ++g) { + for (g = sword2_settings; g->gameid; ++g) { // Iterate over all files in the given directory for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) { if (!file->isDirectory()) { |