mirror of
https://github.com/Thracky/GlosSI.git
synced 2024-11-15 06:12:54 +00:00
Update overlay memory addresses for latest Steam beta
TODO: Switch to pattern scanning!
This commit is contained in:
parent
51e5a6c0c1
commit
88fbd8c53c
@ -196,14 +196,14 @@ void SteamTargetRenderer::RunSfWindowLoop()
|
||||
|
||||
void SteamTargetRenderer::getSteamOverlay()
|
||||
{
|
||||
//TODO: switch to pattern scanning... this is madness.
|
||||
#ifdef _AMD64_
|
||||
hmodGameOverlayRenderer = GetModuleHandle(L"Gameoverlayrenderer64.dll");
|
||||
|
||||
if (hmodGameOverlayRenderer != nullptr)
|
||||
{
|
||||
std::cout << "GameOverlayrenderer64.dll found; Module at: 0x" << hmodGameOverlayRenderer << std::endl;
|
||||
overlayPtr = reinterpret_cast<uint64_t*>(uint64_t(hmodGameOverlayRenderer) + 0x1365e8);
|
||||
overlayPtr = reinterpret_cast<uint64_t*>(*overlayPtr + 0x40);
|
||||
overlayPtr = reinterpret_cast<uint64_t*>(uint64_t(hmodGameOverlayRenderer) + 0x1365cc);
|
||||
}
|
||||
#else
|
||||
hmodGameOverlayRenderer = GetModuleHandle(L"Gameoverlayrenderer.dll");
|
||||
@ -211,8 +211,7 @@ void SteamTargetRenderer::getSteamOverlay()
|
||||
if (hmodGameOverlayRenderer != nullptr)
|
||||
{
|
||||
std::cout << "GameOverlayrenderer.dll found; Module at: 0x" << hmodGameOverlayRenderer << std::endl;
|
||||
overlayPtr = reinterpret_cast<uint32_t*>(uint32_t(hmodGameOverlayRenderer) + 0xED7A0);
|
||||
//overlayPtr = (uint32_t*)(*overlayPtr + 0x40);
|
||||
overlayPtr = reinterpret_cast<uint32_t*>(uint32_t(hmodGameOverlayRenderer) + 0xEE828);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user