Fix 64-bit build

master
acidicoala 2 years ago
parent 5d1abc6498
commit be9fa39508
No known key found for this signature in database
GPG Key ID: D24C6065B49C645B

@ -53,12 +53,18 @@ set(
src/steam_functions/steam_functions.hpp
src/steam_types/steam_types.hpp
src/steamclient_exports/steamclient.cpp
src/koalageddon/vstdlib.cpp
src/koalageddon/steamclient.cpp
src/main.cpp
${GENERATED_LINKER_EXPORTS}
)
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
set(
SMOKE_API_SOURCES ${SMOKE_API_SOURCES}
src/koalageddon/vstdlib.cpp
src/koalageddon/steamclient.cpp
)
endif ()
add_library(SmokeAPI SHARED ${SMOKE_API_SOURCES} ${VERSION_RESOURCE})
configure_output_name(${ORIGINAL_DLL})

@ -3,8 +3,6 @@
#include <koalabox/hook.hpp>
#pragma warning(disable: 4731) // 'ebp' modified by inline assembly...
using namespace smoke_api;
DLL_EXPORT(void) Log_Interface(const char* interface_name, const char* function_name) {

@ -7,8 +7,10 @@
#include <koalabox/file_logger.hpp>
#include <koalabox/hook.hpp>
#include <koalabox/loader.hpp>
#include <koalabox/patcher.hpp>
#include <koalabox/win_util.hpp>
#ifndef _WIN64
#include <koalabox/patcher.hpp>
#endif
#define DETOUR_EX(FUNC, ADDRESS) hook::detour_or_warn(ADDRESS, #FUNC, reinterpret_cast<FunctionAddress>(FUNC));
#define DETOUR(FUNC) hook::detour_or_warn(original_library, #FUNC, reinterpret_cast<FunctionAddress>(FUNC));
@ -49,7 +51,8 @@ namespace smoke_api {
if (is_hook_mode) {
hook::init(true);
if (util::strings_are_equal(exe_name, "steam.exe")) { // target vstdlib_s.dll
if (util::strings_are_equal(exe_name, "steam.exe")) {
#ifndef _WIN64
logger->info("🐨 Detected Koalageddon mode 💥");
dll_monitor::init({VSTDLIB_DLL, STEAMCLIENT_DLL}, [](const HMODULE& library, const String& name) {
@ -70,6 +73,7 @@ namespace smoke_api {
}
}
});
#endif
} else if (config.hook_steamclient) { // target steamclient(64).dll
logger->info("🪝 Detected hook mode for SteamClient");

Loading…
Cancel
Save