- new: Externalized sector loadscreens to TableData\Map\SectorLoadscreens.xml (INI-Switch: USE_EXTERNALIZED_LOADSCREENS)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@887 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2007-05-21 14:29:52 +00:00
parent 2ee08ea1c0
commit 76cf1684f1
9 changed files with 1767 additions and 846 deletions
+17 -1
View File
@@ -119,7 +119,23 @@ BOOLEAN LoadExternalGameplayData(STR directoryName)
return FALSE;
// WANNE: Enemy drops - end
// WANNE: Sector Loadscreens [2007-05-18]
strcpy(fileName, directoryName);
strcat(fileName, SECTORLOADSCREENSFILENAME);
if ( FileExists(fileName) )
{
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
if(!ReadInSectorLoadscreensStats(gSectorLoadscreens, fileName))
return FALSE;
}
else
{
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("File does not exist, fileName = %s", fileName));
// Reset ini-option
gGameExternalOptions.gfUseExternalLoadscreens = FALSE;
}
strcpy(fileName, directoryName);
strcat(fileName, AMMOTYPESFILENAME);