From fbf63c8af0db8816cae77dae9bea6def7b8df68f Mon Sep 17 00:00:00 2001 From: ChrisL Date: Mon, 31 Mar 2008 19:02:34 +0000 Subject: [PATCH] Setup failsafe to block NIV Mode if "Data" is specified as the CUSTOM_DATA_LOCATION. Setup language specific files to be optional. Setup code to accept all language specific files for items.xml, pockets.xml and ammostrings.xml. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1953 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- GameInitOptionsScreen.cpp | 10 +-- GameSettings.cpp | 24 ++++++- GameSettings.h | 1 + GameVersion.cpp | 8 +-- Init.cpp | 133 ++++++++++++++++++++++++++++++++++++- SaveLoadGame.cpp | 2 +- SaveLoadScreen.cpp | 2 +- Tactical/XML.h | 5 ++ Tactical/XML_LBEPocket.cpp | 4 +- Utils/XML_Items.cpp | 4 +- ja2_2005Express.vcproj | 4 +- 11 files changed, 180 insertions(+), 17 deletions(-) diff --git a/GameInitOptionsScreen.cpp b/GameInitOptionsScreen.cpp index de53ff40..5faeb376 100644 --- a/GameInitOptionsScreen.cpp +++ b/GameInitOptionsScreen.cpp @@ -474,7 +474,7 @@ BOOLEAN EnterGIOScreen() } // CHRISL: New inventory options - if(iResolution != 0 && gCustomDataCat.GetRootDir() != ""){ + if(IsNIVModeValid() == TRUE){ usPosY = GIO_INV_SETTING_Y - GIO_OFFSET_TO_TOGGLE_BOX_Y; for( cnt=0; cnt