mirror of
https://gitgud.io/yuv420p10le/plexmediaserver_crack
synced 2025-12-30 22:20:28 +00:00
Fixed off by 1 bug causing some features like HDR tone mapping to not work.
This commit is contained in:
@@ -409,7 +409,7 @@ void hook_bitset_init(uintptr_t rcx, uintptr_t rdx)
|
||||
g_feature_flags->set();
|
||||
|
||||
#if _DEBUG
|
||||
std::println("[INFO] [plexmediaserver_crack] Forced feature flags on.", reinterpret_cast<uintptr_t>(g_feature_flags));
|
||||
std::println("[INFO] [plexmediaserver_crack] Forced feature flags on {:08X}.", reinterpret_cast<uintptr_t>(g_feature_flags));
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -444,7 +444,7 @@ void hook()
|
||||
// Features are now enabled in std::atomic<std::bitset> as of 2024/08/13 PMS BETA
|
||||
if(bitset && bitset_init)
|
||||
{
|
||||
const uintptr_t addr = bitset.value() + 6 + *reinterpret_cast<uint32_t*>(bitset.value() + 9);
|
||||
const uintptr_t addr = bitset.value() + 5 + *reinterpret_cast<uint32_t*>(bitset.value() + 9);
|
||||
g_feature_flags = reinterpret_cast<std::bitset<416>*>(addr + sizeof(uintptr_t));
|
||||
_bitset_init = safetyhook::create_inline(reinterpret_cast<void*>(bitset_init.value()), reinterpret_cast<void*>(hook_bitset_init));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user