Skip to content

Commit

Permalink
fix: gog detection (doodlum#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlum authored Dec 7, 2024
1 parent b2183d3 commit 1f508e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Upscaling.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Upscaling : public RE::BSTEventSink<RE::MenuOpenCloseEvent>
static void InstallHooks()
{
if (!State::GetSingleton()->upscalerLoaded) {
bool isGOG = !std::filesystem::exists(L"steam_api64.dll");
bool isGOG = !GetModuleHandle(L"steam_api64.dll");

stl::write_thunk_call<Main_UpdateJitter>(REL::RelocationID(75460, 77245).address() + REL::Relocate(0xE5, isGOG ? 0x133 : 0xE2, 0x104));
stl::write_thunk_call<TAA_BeginTechnique>(REL::RelocationID(100540, 107270).address() + REL::Relocate(0x3E9, 0x3EA, 0x448));
Expand Down

0 comments on commit 1f508e7

Please sign in to comment.