(svn r970) Added 2nd data path for all non-windows OSes

added completely customizable lang path (all non-Windows OSes)
This commit is contained in:
bjarni
2004-12-07 17:16:57 +00:00
parent a3a2f0617c
commit 051134ac9f
6 changed files with 65 additions and 9 deletions

11
ttd.c
View File

@@ -496,8 +496,15 @@ void LoadIntroGame()
// Generate a world.
sprintf(filename, "%sopntitle.dat", _path.data_dir);
if (SaveOrLoad(filename, SL_LOAD) != SL_OK)
GenerateWorld(1); // if failed loading, make empty world.
#if defined SECOND_DATA_DIR
{
sprintf(filename, "%sopntitle.dat", _path.second_data_dir);
if (SaveOrLoad(filename, SL_LOAD) != SL_OK)
#endif
GenerateWorld(1); // if failed loading, make empty world.
#if defined SECOND_DATA_DIR
}
#endif
_opt.currency = _new_opt.currency;
_pause = 0;