From 748ee26611937dd1dfc7a5932a129dab7ac8aa72 Mon Sep 17 00:00:00 2001 From: Tazpn <tazpn@users.sourceforge.net> Date: Wed, 18 Jul 2007 03:14:47 +0000 Subject: [PATCH] Add support for 20.1.0.3, 20.3.0.3, 20.3.0.6 nif formats. --- MaxNifTools.ini | 25 ++++++++++++++++++++++++- NifCommon/niutils.cpp | 2 ++ NifPlugins_VC80.vcproj | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/MaxNifTools.ini b/MaxNifTools.ini index a9223ae..d734959 100644 --- a/MaxNifTools.ini +++ b/MaxNifTools.ini @@ -8,7 +8,7 @@ MaxSDKVersion=0 ShortDescription=Netimmerse/Gamebryo ; KnownApplications - Used to indicate which sections in the ini file point ; to "Applications" which have their own settings in a section below. -KnownApplications=Oblivion;Morrowind;Civilization 4;Dark Age of Camelot;Freedom Force;Freedom Force vs. the 3rd Reich;Star Trek: Bridge Commander;Loki;User +KnownApplications=Oblivion;Morrowind;Civilization 4;Dark Age of Camelot;Freedom Force;Freedom Force vs. the 3rd Reich;Star Trek: Bridge Commander;Loki;Imagine;Emerge;User ; Reparse the Applications (and therefore Texture directory cache) on every import/export Reparse=0 ; Website - Primary website @@ -292,6 +292,29 @@ TextureExtensions=.tga;.dds TextureSearchPaths=${TextureRootPaths} TextureUseFullPath=-1 + +[Imagine] +NiVersion=20.3.0.6 +NiUserVersion=0 +InstallPath=[HKLM\SOFTWARE\MEGAMITENSEI IMAGINE] +RootPath=${InstallPath} +RootPaths=${InstallPath} +TextureRootPaths=${InstallPath} +TextureExtensions=.tga;.dds +TextureSearchPaths=${InstallPath} +TextureUseFullPath=-1 + +[Emerge] +NiVersion=20.3.0.6 +NiUserVersion=0 +InstallPath=[HKLM\SOFTWARE\Emergent\Emerge]=@"Path" +RootPath=${InstallPath} +RootPaths=${InstallPath} +TextureRootPaths=${InstallPath} +TextureExtensions=.tga;.dds +TextureSearchPaths=${InstallPath} +TextureUseFullPath=-1 + [User] NiVersion=20.0.0.5 NiUserVersion=0 diff --git a/NifCommon/niutils.cpp b/NifCommon/niutils.cpp index 889e17f..33da10f 100644 --- a/NifCommon/niutils.cpp +++ b/NifCommon/niutils.cpp @@ -349,6 +349,8 @@ string GetIndirectValue(LPCSTR path) if (*valueName == '\"' || *valueName == '\'') ++valueName; if (*end == '\"' || *end == '\'') *end-- = 0; Trim(valueName); + if (strlen(valueName) == 0) + valueName = NULL; LPTSTR keyEnd = _tcschr(p, '\\'); if (keyEnd != NULL) { diff --git a/NifPlugins_VC80.vcproj b/NifPlugins_VC80.vcproj index 4c901d8..21f6459 100644 --- a/NifPlugins_VC80.vcproj +++ b/NifPlugins_VC80.vcproj @@ -1711,7 +1711,7 @@ Optimization="0" InlineFunctionExpansion="0" AdditionalIncludeDirectories="C:\3dsmax9\maxsdk\include;..\niflib\include;..\niflib;.\NifCommon" - PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;USE_NIFLIB_TEMPLATE_HELPERS;_USE_MATH_DEFINES;USE_UNSUPPORTED_CODE;USE_BIPED;NIFLIB_STATIC_LINK" + PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;USE_NIFLIB_TEMPLATE_HELPERS;_USE_MATH_DEFINES;USE_UNSUPPORTED_CODE;USE_BIPED;NIFLIB_STATIC_LINK;_SCL_SECURE_NO_WARNINGS" GeneratePreprocessedFile="0" MinimalRebuild="true" ExceptionHandling="1" -- GitLab