From 3ceace483ced8b585336f61db309083a886c2b3a Mon Sep 17 00:00:00 2001 From: Tazpn <tazpn@users.sourceforge.net> Date: Mon, 22 Dec 2008 04:39:00 +0000 Subject: [PATCH] niflib: Add atlantica to the supported version list --- include/nif_versions.h | 1 + src/NIF_IO.cpp | 2 ++ src/niflib.cpp | 1 + 3 files changed, 4 insertions(+) diff --git a/include/nif_versions.h b/include/nif_versions.h index 4aee3f8f..b96e4975 100644 --- a/include/nif_versions.h +++ b/include/nif_versions.h @@ -27,6 +27,7 @@ const unsigned VER_20_0_0_4 = 0x14000004; /*!< NIF Version 20.0.0.4 */ const unsigned VER_20_0_0_5 = 0x14000005; /*!< NIF Version 20.0.0.4 */ const unsigned VER_20_1_0_3 = 0x14010003; /*!< NIF Version 20.1.0.3 */ const unsigned VER_20_2_0_7 = 0x14020007; /*!< NIF Version 20.2.0.7 */ +const unsigned VER_20_2_0_8 = 0x14020008; /*!< NIF Version 20.2.0.7 */ const unsigned VER_20_3_0_3 = 0x14030003; /*!< NIF Version 20.3.0.3 */ const unsigned VER_20_3_0_6 = 0x14030006; /*!< NIF Version 20.3.0.6 */ const unsigned VER_UNSUPPORTED = 0xFFFFFFFF; /*!< Unsupported NIF Version */ diff --git a/src/NIF_IO.cpp b/src/NIF_IO.cpp index 31152e2e..db0f7b42 100644 --- a/src/NIF_IO.cpp +++ b/src/NIF_IO.cpp @@ -357,6 +357,8 @@ void NifStream( HeaderString & val, istream& in, NifInfo & info ) { ver_start = 32; } else if ( val.header.substr(0, 20) == "Gamebryo File Format" ) { ver_start = 30; + } else if ( val.header.substr(0, 6) == "NDSNIF" ) { + ver_start = 30; } else { //Not a NIF file info.version = VER_INVALID; diff --git a/src/niflib.cpp b/src/niflib.cpp index 4153ff52..29463832 100644 --- a/src/niflib.cpp +++ b/src/niflib.cpp @@ -1093,6 +1093,7 @@ bool IsSupportedVersion( unsigned int version ) { case VER_20_0_0_5: case VER_20_1_0_3: case VER_20_2_0_7: + case VER_20_2_0_8: case VER_20_3_0_3: case VER_20_3_0_6: return true; -- GitLab