fix 6.31 getnetmode from my car hotspot gg

This commit is contained in:
Gray
2025-08-04 10:17:03 -04:00
parent 4e04351e98
commit 46835813a7

View File

@@ -1596,7 +1596,9 @@ static inline uint64 FindGetNetMode()
for (int i = 0; i < 400; i++) for (int i = 0; i < 400; i++)
{ {
if ((*(uint8_t*)(uint8_t*)(BeginningFunction + i) == 0xE8) && (*(uint8_t*)(uint8_t*)(BeginningFunction + i - 1) != 0x8B)) // scuffed but idk how to guarantee its not a register if ((*(uint8_t*)(uint8_t*)(BeginningFunction + i) == 0xE8)
&& (*(uint8_t*)(uint8_t*)(BeginningFunction + i - 1) != 0x8B) // scuffed but idk how to guarantee its not a register
&& (*(uint8_t*)(uint8_t*)(BeginningFunction + i - 1) != 0xE7)) // ^^ 6.31
{ {
CallToFunc = BeginningFunction + i; CallToFunc = BeginningFunction + i;
break; break;
@@ -1609,7 +1611,7 @@ static inline uint64 FindGetNetMode()
return 0; return 0;
} }
LOG_INFO(LogDev, "CallToFunc: 0x{:x}", CallToFunc - __int64(GetModuleHandleW(0))); LOG_INFO(LogDev, "GetNetMode Off: 0x{:x}", CallToFunc - __int64(GetModuleHandleW(0)));
return Memcury::Scanner(CallToFunc).RelativeOffset(1).Get(); return Memcury::Scanner(CallToFunc).RelativeOffset(1).Get();