Prepare zone patches
This commit is contained in:
parent
05488339d8
commit
2ab995a2a5
@ -28,6 +28,7 @@ namespace Components
|
|||||||
Loader::Register(new Menus());
|
Loader::Register(new Menus());
|
||||||
Loader::Register(new Toast());
|
Loader::Register(new Toast());
|
||||||
Loader::Register(new Party());
|
Loader::Register(new Party());
|
||||||
|
Loader::Register(new Zones());
|
||||||
Loader::Register(new Colors());
|
Loader::Register(new Colors());
|
||||||
Loader::Register(new D3D9Ex());
|
Loader::Register(new D3D9Ex());
|
||||||
Loader::Register(new Logger());
|
Loader::Register(new Logger());
|
||||||
|
@ -39,6 +39,7 @@ namespace Components
|
|||||||
#include "Modules\Flags.hpp"
|
#include "Modules\Flags.hpp"
|
||||||
#include "Modules\Menus.hpp"
|
#include "Modules\Menus.hpp"
|
||||||
#include "Modules\Toast.hpp"
|
#include "Modules\Toast.hpp"
|
||||||
|
#include "Modules\Zones.hpp"
|
||||||
#include "Modules\Colors.hpp"
|
#include "Modules\Colors.hpp"
|
||||||
#include "Modules\D3D9Ex.hpp"
|
#include "Modules\D3D9Ex.hpp"
|
||||||
#include "Modules\Script.hpp"
|
#include "Modules\Script.hpp"
|
||||||
|
@ -147,11 +147,13 @@ namespace Components
|
|||||||
{
|
{
|
||||||
Game::DB_ReadXFileUncompressed(version, size);
|
Game::DB_ReadXFileUncompressed(version, size);
|
||||||
|
|
||||||
// Allow loading out custom version
|
// Allow loading of custom version
|
||||||
if (*version == XFILE_VERSION_IW4X)
|
if (*version == XFILE_VERSION_IW4X)
|
||||||
{
|
{
|
||||||
*version = XFILE_VERSION;
|
*version = XFILE_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Zones::InstallPatches(*version);
|
||||||
}
|
}
|
||||||
|
|
||||||
FastFiles::FastFiles()
|
FastFiles::FastFiles()
|
||||||
|
21
src/Components/Modules/Zones.cpp
Normal file
21
src/Components/Modules/Zones.cpp
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
|
namespace Components
|
||||||
|
{
|
||||||
|
int Zones::ZoneVersion;
|
||||||
|
|
||||||
|
void Zones::InstallPatches(int version)
|
||||||
|
{
|
||||||
|
Zones::ZoneVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
Zones::Zones()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Zones::~Zones()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
18
src/Components/Modules/Zones.hpp
Normal file
18
src/Components/Modules/Zones.hpp
Normal file
@ -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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user