mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-05-04 11:32:18 -04:00
Refactored linux exports generator with inja
This commit is contained in:
@@ -213,17 +213,7 @@ namespace smoke_api {
|
||||
original_steamapi_handle = kb::lib::load_original_library(self_path, STEAM_API_MODULE);
|
||||
|
||||
#ifdef KB_LINUX
|
||||
// We need to enable writing into the instruction memory
|
||||
// TODO: Move to generated file
|
||||
const auto code_section = kb::lib::get_section_or_throw(module_handle, kb::lib::CODE_SECTION);
|
||||
PLH::MemAccessor mem_accessor;
|
||||
PLH::MemoryProtector const protector(
|
||||
reinterpret_cast<uint64_t>(code_section.start_address),
|
||||
code_section.size,
|
||||
PLH::ProtFlag::RWX,
|
||||
mem_accessor
|
||||
);
|
||||
proxy_exports::init(original_steamapi_handle);
|
||||
proxy_exports::init(module_handle, original_steamapi_handle);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -2,12 +2,6 @@
|
||||
|
||||
#include "smoke_api/types.hpp"
|
||||
|
||||
constexpr auto STEAM_APPS = "STEAMAPPS_INTERFACE_VERSION";
|
||||
constexpr auto STEAM_CLIENT = "SteamClient";
|
||||
constexpr auto STEAM_HTTP = "STEAMHTTP_INTERFACE_VERSION";
|
||||
constexpr auto STEAM_USER = "SteamUser";
|
||||
constexpr auto STEAM_INVENTORY = "STEAMINVENTORY_INTERFACE_V";
|
||||
constexpr auto STEAM_GAME_SERVER = "SteamGameServer";
|
||||
|
||||
// IMPORTANT: DLL_EXPORT is hardcoded in windows_exports_generator.cpp & linux_exports_generator.cpp,
|
||||
// so any name changes here must be reflected there as well.
|
||||
|
||||
Reference in New Issue
Block a user