Use Reloc.Open for Origin entries in Scenario.txt (#1966)

install-platforms
Julius Michaelis 2017-12-21 16:39:15 +01:00
parent 0ae6383937
commit 99fe7a1a2c
1 changed files with 5 additions and 1 deletions

View File

@ -234,7 +234,7 @@ void C4GameResList::LoadFoldersWithLocalDefs(const char *szPath)
SCopy(szPath,szFoldername,iBackslash);
// Open folder
if (SEqualNoCase(GetExtension(szFoldername),"ocf"))
if (hGroup.Open(szFoldername))
if (Reloc.Open(hGroup, szFoldername))
{
// Check for contained defs
// do not, however, add them to the group set:
@ -248,6 +248,10 @@ void C4GameResList::LoadFoldersWithLocalDefs(const char *szPath)
// Close folder
hGroup.Close();
}
else
{
LogF("Internal WARNING: Could not inspect folder %s for definitions.", szFoldername);
}
}
}