diff --git a/src/app/global.cpp b/src/app/global.cpp index 73327da..01718fa 100644 --- a/src/app/global.cpp +++ b/src/app/global.cpp @@ -17,5 +17,7 @@ std::uint32_t global::start; #else bool global::hide = false; HWND global::hwnd; +#ifndef HELPER kiero::RenderType::Enum global::renderer; +#endif #endif \ No newline at end of file diff --git a/src/app/global.hpp b/src/app/global.hpp index 5f39492..11e34fa 100644 --- a/src/app/global.hpp +++ b/src/app/global.hpp @@ -64,6 +64,8 @@ class global #else static bool hide; static HWND hwnd; +#ifndef HELPER static kiero::RenderType::Enum renderer; #endif +#endif }; \ No newline at end of file diff --git a/src/app/hook/hook.cpp b/src/app/hook/hook.cpp index eae357a..8f4cd1f 100644 --- a/src/app/hook/hook.cpp +++ b/src/app/hook/hook.cpp @@ -16,6 +16,12 @@ bool hook::load(process_t proc) #ifdef _M_AMD64 if (!proc.arch.compare("x86")) { + if (!fs::exists("x86/helper.exe")) + { + global::msg_box("Radio.Garten Overlay", "helper.exe is missing from the x86 folder!\nPlease try downloading the latest version and try again."); + return false; + } + ShellExecuteA(0, "open", "x86\\helper.exe", &logger::va("--pid %i --arch %s --hwnd %u --winver %u --auto %i", proc.pid, &proc.arch[0], proc.hwnd, global::winver, hook::auto_refresh)[0], 0, 1); hook::injected_apps.emplace_back(proc); return true; diff --git a/src/app/stdafx.hpp b/src/app/stdafx.hpp index 7773abf..d9423a0 100644 --- a/src/app/stdafx.hpp +++ b/src/app/stdafx.hpp @@ -16,10 +16,6 @@ #include #include #else -#include -#include -#include - #include #include