Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
project(FantasyLifeI-ModLoader LANGUAGES CXX C)

set(VERSION 1.00)
option(MLDEBUG "Enable ModLoader debug code" OFF)
option(MLDEBUG "Enable ModLoader debug code" ON)

add_subdirectory(DllProxy)
add_library(${PROJECT_NAME} SHARED src/ModLoader.cpp)
Expand Down
2 changes: 1 addition & 1 deletion include
Submodule include updated 133 files
6 changes: 3 additions & 3 deletions src/ModLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ DWORD WINAPI ModLoader::init(LPVOID lpParam) {
logger->info("Mod loader has been started");
Patcher patcher;
uintptr_t baseAddress = (uintptr_t) GetModuleHandle(nullptr);
patcher.add(new EventHook(EventType::ClickEvent, 0x657DC32));
patcher.applyPatches(baseAddress);
// patcher.add(new EventHook(EventType::ClickEvent, 0x657DC32)); broken?????
// patcher.applyPatches(baseAddress);
gameData = new GameData(reinterpret_cast<uintptr_t>(GetModuleHandle(nullptr)));

gameCache = new GameCache();
Expand All @@ -22,7 +22,7 @@ DWORD WINAPI ModLoader::init(LPVOID lpParam) {
gameCache->PostLoadCache();
gameData->initOthersData();
modEnvironnement->PostLoad();

return 0;
}

Expand Down