From 23b8a60765e4270bbab8c54448e7fd0d84df0a6c Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 28 Jan 2016 17:49:33 +0100 Subject: [PATCH] Don't load custom fastfiles for zonebuilder. --- src/Components/Modules/FastFiles.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/FastFiles.cpp b/src/Components/Modules/FastFiles.cpp index 83e5a54a..c681c281 100644 --- a/src/Components/Modules/FastFiles.cpp +++ b/src/Components/Modules/FastFiles.cpp @@ -133,8 +133,11 @@ namespace Components Utils::Hook(0x44DA90, FastFiles::GetZoneLocation, HOOK_JUMP).Install()->Quick(); // Allow dlc ui zone loading - Utils::Hook(0x506BC7, FastFiles::LoadInitialZones, HOOK_CALL).Install()->Quick(); - Utils::Hook(0x60B4AC, FastFiles::LoadDLCUIZones, HOOK_CALL).Install()->Quick(); + if (!ZoneBuilder::IsEnabled()) + { + Utils::Hook(0x506BC7, FastFiles::LoadInitialZones, HOOK_CALL).Install()->Quick(); + Utils::Hook(0x60B4AC, FastFiles::LoadDLCUIZones, HOOK_CALL).Install()->Quick(); + } // basic checks (hash jumps, both normal and playlist) Utils::Hook::Nop(0x5B97A3, 2);