yuv420p10le 2a003b95ba v1.40.3.8555+ support and other quirks.
* Now works with v1.40.3.8555 (inlined) and older versions too.
* Added a whitelist of features now rather than a global-enable.
* Refactored some code to use std::optional.
* Linux: Wrote proper hooking function. No unhooking support as it's unneeded.
* Windows: Now uses SafetyHook as we need trampolines.
* Windows: When building for debug, you can see queried features and their caller (return address offset from PMS base address); reverse on your own or query me.
2024-06-11 20:41:05 +03:00

15 lines
525 B
C++

#pragma once
#include <cstdint>
#include <string>
#include <tuple>
#include <optional>
std::optional<std::tuple<uintptr_t, uintptr_t>> get_dottext_info();
std::optional<uintptr_t> create_hook(uintptr_t from, uintptr_t to);
std::optional<uintptr_t> sig_scan(const uintptr_t start, const uintptr_t end, std::string_view pattern);
uintptr_t follow_call_rel32(const uintptr_t address);
uint64_t hook_is_feature_available(uintptr_t rcx, const char* guid);
uint64_t* hook_map_find(uintptr_t* rcx, const char** str);
void hook();