diff --git a/src/Components/Loader.cpp b/src/Components/Loader.cpp index c47fa11f..1b0712ab 100644 --- a/src/Components/Loader.cpp +++ b/src/Components/Loader.cpp @@ -28,6 +28,7 @@ namespace Components Loader::Register(new Menus()); Loader::Register(new Toast()); Loader::Register(new Party()); + Loader::Register(new Zones()); Loader::Register(new Colors()); Loader::Register(new D3D9Ex()); Loader::Register(new Logger()); diff --git a/src/Components/Loader.hpp b/src/Components/Loader.hpp index a96a375a..66da7218 100644 --- a/src/Components/Loader.hpp +++ b/src/Components/Loader.hpp @@ -39,6 +39,7 @@ namespace Components #include "Modules\Flags.hpp" #include "Modules\Menus.hpp" #include "Modules\Toast.hpp" +#include "Modules\Zones.hpp" #include "Modules\Colors.hpp" #include "Modules\D3D9Ex.hpp" #include "Modules\Script.hpp" diff --git a/src/Components/Modules/FastFiles.cpp b/src/Components/Modules/FastFiles.cpp index a9c93fb6..0a69c314 100644 --- a/src/Components/Modules/FastFiles.cpp +++ b/src/Components/Modules/FastFiles.cpp @@ -147,11 +147,13 @@ namespace Components { Game::DB_ReadXFileUncompressed(version, size); - // Allow loading out custom version + // Allow loading of custom version if (*version == XFILE_VERSION_IW4X) { *version = XFILE_VERSION; } + + Zones::InstallPatches(*version); } FastFiles::FastFiles() diff --git a/src/Components/Modules/Zones.cpp b/src/Components/Modules/Zones.cpp new file mode 100644 index 00000000..fa72f063 --- /dev/null +++ b/src/Components/Modules/Zones.cpp @@ -0,0 +1,21 @@ +#include "STDInclude.hpp" + +namespace Components +{ + int Zones::ZoneVersion; + + void Zones::InstallPatches(int version) + { + Zones::ZoneVersion = version; + } + + Zones::Zones() + { + + } + + Zones::~Zones() + { + + } +} diff --git a/src/Components/Modules/Zones.hpp b/src/Components/Modules/Zones.hpp new file mode 100644 index 00000000..84ab67bd --- /dev/null +++ b/src/Components/Modules/Zones.hpp @@ -0,0 +1,18 @@ +namespace Components +{ + class Zones : public Component + { + public: + Zones(); + ~Zones(); + +#if defined(DEBUG) || defined(FORCE_UNIT_TESTS) + const char* GetName() { return "Zones"; }; +#endif + + static void InstallPatches(int version); + + private: + static int ZoneVersion; + }; +}