Skip to content

Commit

Permalink
xrCore: fix load archived config files
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Nov 6, 2018
1 parent 37fd556 commit e470690
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/xrCore/xr_ini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,16 @@ CInifile::CInifile(pcstr fileName, bool readOnly, bool loadAtStart, bool saveAtE
if (fileName && strstr(fileName, "system"))
Msg("-----loading %s", fileName);

#ifdef LINUX
if (fileName)
while (char* sep = strchr((char *)fileName, '\\')) *sep = '/';
#endif

m_file_name[0] = 0;
m_flags.zero();
if (fileName)
xr_strcpy(m_file_name, sizeof m_file_name, fileName);

#ifdef LINUX
while (char* sep = strchr(m_file_name, '\\')) *sep = '/';
#endif

m_flags.set(eSaveAtEnd, saveAtEnd);
m_flags.set(eReadOnly, readOnly);

Expand Down

0 comments on commit e470690

Please sign in to comment.