Skip to content

Commit e470690

Browse files
committed
xrCore: fix load archived config files
1 parent 37fd556 commit e470690

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/xrCore/xr_ini.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,15 +340,16 @@ CInifile::CInifile(pcstr fileName, bool readOnly, bool loadAtStart, bool saveAtE
340340
if (fileName && strstr(fileName, "system"))
341341
Msg("-----loading %s", fileName);
342342

343+
#ifdef LINUX
344+
if (fileName)
345+
while (char* sep = strchr((char *)fileName, '\\')) *sep = '/';
346+
#endif
347+
343348
m_file_name[0] = 0;
344349
m_flags.zero();
345350
if (fileName)
346351
xr_strcpy(m_file_name, sizeof m_file_name, fileName);
347352

348-
#ifdef LINUX
349-
while (char* sep = strchr(m_file_name, '\\')) *sep = '/';
350-
#endif
351-
352353
m_flags.set(eSaveAtEnd, saveAtEnd);
353354
m_flags.set(eReadOnly, readOnly);
354355

0 commit comments

Comments
 (0)