File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
TheForceEngine/TFE_Settings Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ namespace TFE_Settings
101
101
" D:/Program Files (x86)/GOG.com/outlaws/" ,
102
102
" D:/GOG Games/outlaws/" ,
103
103
};
104
- static const u32 c_hardcodedPathCount = TFE_ARRAYSIZE(c_darkForcesLocations);
104
+ static const u32 c_hardcodedPathCount[] = { TFE_ARRAYSIZE (c_darkForcesLocations), TFE_ARRAYSIZE (c_outlawsLocations) } ;
105
105
106
106
static const char * const * c_gameLocations[] =
107
107
{
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ namespace TFE_Settings
232
232
{
233
233
// Try various possible locations.
234
234
const char * const * locations = c_gameLocations[gameId];
235
- for (u32 i = 0 ; i < c_hardcodedPathCount; i++)
235
+ for (u32 i = 0 ; i < c_hardcodedPathCount[gameId] ; i++)
236
236
{
237
237
if (FileUtil::directoryExits (locations[i]))
238
238
{
You can’t perform that action at this time.
0 commit comments