Skip to content
Open
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 hack_civilization.cpp
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no clue what the "xp2" version of Civ 6 is, but this change was required to get the cheat working.

Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ MemBlock HackState::getGoldSetter() {
hook_ptr = getGoldSetter_address;
} else {
auto& modules = process->modules();
auto gamecore_module = modules.GetModule(L"GameCore_Base_FinalRelease.dll");
auto gamecore_module = modules.GetModule(L"gamecore_xp2_finalrelease.dll");

if (static_offset) {
hook_ptr = gamecore_module->baseAddress + static_offset;
Expand Down