mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Another tweak to the language system for cities.xml.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2321 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -237,75 +237,27 @@ BOOLEAN LoadExternalGameplayData(STR directoryName)
|
|||||||
// the uiIndex (for reference), szItemName, szLongItemName, szItemDesc, szBRName, and szBRDesc tags
|
// the uiIndex (for reference), szItemName, szLongItemName, szItemDesc, szBRName, and szBRDesc tags
|
||||||
|
|
||||||
#ifdef GERMAN
|
#ifdef GERMAN
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, GERMAN_PREFIX);
|
||||||
strcat(fileName, GERMAN_PREFIX);
|
|
||||||
strcat(fileName, ITEMSFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInItemStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef RUSSIAN
|
#ifdef RUSSIAN
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, RUSSIAN_PREFIX);
|
||||||
strcat(fileName, RUSSIAN_PREFIX);
|
|
||||||
strcat(fileName, ITEMSFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInItemStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef DUTCH
|
#ifdef DUTCH
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, DUTCH_PREFIX);
|
||||||
strcat(fileName, DUTCH_PREFIX);
|
|
||||||
strcat(fileName, ITEMSFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInItemStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef POLISH
|
#ifdef POLISH
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, POLISH_PREFIX);
|
||||||
strcat(fileName, POLISH_PREFIX);
|
|
||||||
strcat(fileName, ITEMSFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInItemStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef FRENCH
|
#ifdef FRENCH
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, FRENCH_PREFIX);
|
||||||
strcat(fileName, FRENCH_PREFIX);
|
|
||||||
strcat(fileName, ITEMSFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInItemStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef ITALIAN
|
#ifdef ITALIAN
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, ITALIAN_PREFIX);
|
||||||
strcat(fileName, ITALIAN_PREFIX);
|
|
||||||
strcat(fileName, ITEMSFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInItemStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef TAIWANESE
|
#ifdef TAIWANESE
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, TAIWANESE_PREFIX);
|
||||||
strcat(fileName, TAIWANESE_PREFIX);
|
#endif
|
||||||
strcat(fileName, ITEMSFILENAME);
|
#ifndef ENGLISH
|
||||||
if ( FileExists(fileName) )
|
if ( FileExists(fileName) )
|
||||||
{
|
{
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
||||||
@@ -386,75 +338,27 @@ BOOLEAN LoadExternalGameplayData(STR directoryName)
|
|||||||
// Same setup as what Madd used for items.xml
|
// Same setup as what Madd used for items.xml
|
||||||
|
|
||||||
#ifdef GERMAN
|
#ifdef GERMAN
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, GERMAN_PREFIX);
|
||||||
strcat(fileName, GERMAN_PREFIX);
|
|
||||||
strcat(fileName, LBEPOCKETFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInLBEPocketStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef RUSSIAN
|
#ifdef RUSSIAN
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, RUSSIAN_PREFIX);
|
||||||
strcat(fileName, RUSSIAN_PREFIX);
|
|
||||||
strcat(fileName, LBEPOCKETFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInLBEPocketStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef DUTCH
|
#ifdef DUTCH
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, DUTCH_PREFIX);
|
||||||
strcat(fileName, DUTCH_PREFIX);
|
|
||||||
strcat(fileName, LBEPOCKETFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInLBEPocketStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef POLISH
|
#ifdef POLISH
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, POLISH_PREFIX);
|
||||||
strcat(fileName, POLISH_PREFIX);
|
|
||||||
strcat(fileName, LBEPOCKETFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInLBEPocketStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef FRENCH
|
#ifdef FRENCH
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, FRENCH_PREFIX);
|
||||||
strcat(fileName, FRENCH_PREFIX);
|
|
||||||
strcat(fileName, LBEPOCKETFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInLBEPocketStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef ITALIAN
|
#ifdef ITALIAN
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, ITALIAN_PREFIX);
|
||||||
strcat(fileName, ITALIAN_PREFIX);
|
|
||||||
strcat(fileName, LBEPOCKETFILENAME);
|
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInLBEPocketStats(fileName,TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef TAIWANESE
|
#ifdef TAIWANESE
|
||||||
strcpy(fileName, directoryName);
|
AddLanguagePrefix( fileName, TAIWANESE_PREFIX);
|
||||||
strcat(fileName, TAIWANESE_PREFIX);
|
#endif
|
||||||
strcat(fileName, LBEPOCKETFILENAME);
|
#ifndef ENGLISH
|
||||||
if ( FileExists(fileName) )
|
if ( FileExists(fileName) )
|
||||||
{
|
{
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
||||||
@@ -579,64 +483,30 @@ BOOLEAN LoadExternalGameplayData(STR directoryName)
|
|||||||
|
|
||||||
#ifdef GERMAN
|
#ifdef GERMAN
|
||||||
AddLanguagePrefix( fileName, GERMAN_PREFIX);
|
AddLanguagePrefix( fileName, GERMAN_PREFIX);
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInMapStructure(fileName, TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef RUSSIAN
|
#ifdef RUSSIAN
|
||||||
AddLanguagePrefix( fileName, RUSSIAN_PREFIX);
|
AddLanguagePrefix( fileName, RUSSIAN_PREFIX);
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInMapStructure(fileName, TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef DUTCH
|
#ifdef DUTCH
|
||||||
AddLanguagePrefix( fileName, DUTCH_PREFIX);
|
AddLanguagePrefix( fileName, DUTCH_PREFIX);
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInMapStructure(fileName, TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef POLISH
|
#ifdef POLISH
|
||||||
AddLanguagePrefix( fileName, POLISH_PREFIX);
|
AddLanguagePrefix( fileName, POLISH_PREFIX);
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInMapStructure(fileName, TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef FRENCH
|
#ifdef FRENCH
|
||||||
AddLanguagePrefix( fileName, FRENCH_PREFIX);
|
AddLanguagePrefix( fileName, FRENCH_PREFIX);
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInMapStructure(fileName, TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef ITALIAN
|
#ifdef ITALIAN
|
||||||
AddLanguagePrefix( fileName, ITALIAN_PREFIX);
|
AddLanguagePrefix( fileName, ITALIAN_PREFIX);
|
||||||
if ( FileExists(fileName) )
|
|
||||||
{
|
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
|
||||||
if(!ReadInMapStructure(fileName, TRUE))
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef TAIWANESE
|
#ifdef TAIWANESE
|
||||||
AddLanguagePrefix( fileName, TAIWANESE_PREFIX);
|
AddLanguagePrefix( fileName, TAIWANESE_PREFIX);
|
||||||
|
#endif
|
||||||
|
#ifndef ENGLISH
|
||||||
if ( FileExists(fileName) )
|
if ( FileExists(fileName) )
|
||||||
{
|
{
|
||||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
||||||
if(!ReadInMapStructure(fileName, TRUE))
|
if(!ReadInStrategicMapSectorTownNames(fileName, TRUE))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user