summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 0991150..21451d9 100644
--- a/main.cpp
+++ b/main.cpp
@@ -621,13 +621,13 @@ bool CApplication::InitSteam()
621 if(pppUsePICS) 621 if(pppUsePICS)
622 g_pUsePICS = **(void***)pppUsePICS; 622 g_pUsePICS = **(void***)pppUsePICS;
623#else 623#else
624 unsigned char* pSig = (unsigned char*)steamclientScanner.FindSignature("\x55\x89\xE5\xE8\x00\x00\x00\x00\x81\xC1\x00\x00\x00\x00\x8B\x45\x08\x80\x7D\x0C\x00", "xxxx????xx????xxxxxxx"); 624 unsigned char* pSig = (unsigned char*)steamclientScanner.FindSignature("\x55\x89\xE5\x56\x53\xE8\x00\x00\x00\x00\x81\xC3\x00\x00\x00\x00\x8B\x4D\x08\x8B\x75\x0C\x8B\x83", "xxxxxx????xx????xxxxxxxx");
625 if(pSig) 625 if(pSig)
626 { 626 {
627 int uOffset = *(int*)(pSig + 10); 627 int uOffset = *(int*)(pSig + 12);
628 int uOffset2 = *(int*)(pSig + 34); 628 int uOffset2 = *(int*)(pSig + 24);
629 629
630 void* ppUsePICS = pSig + 8 + uOffset + uOffset2; 630 void* ppUsePICS = pSig + 10 + uOffset + uOffset2;
631 g_pUsePICS = *(void**)ppUsePICS; 631 g_pUsePICS = *(void**)ppUsePICS;
632 } 632 }
633#endif 633#endif
@@ -917,7 +917,7 @@ bool CApplication::LogOn()
917#ifdef _WIN32 917#ifdef _WIN32
918 bool (__thiscall* pSetValue)(void* pThis, const char* cszValue) = (bool (__thiscall *)(void *,const char *)) (*(void***)g_pUsePICS)[13]; 918 bool (__thiscall* pSetValue)(void* pThis, const char* cszValue) = (bool (__thiscall *)(void *,const char *)) (*(void***)g_pUsePICS)[13];
919#else 919#else
920 void (*pSetValue)(void* pThis, const char* cszValue) = (void (*)(void *,const char *)) (*(void***)g_pUsePICS)[13]; 920 void (*pSetValue)(void* pThis, const char* cszValue) = (void (*)(void *,const char *)) (*(void***)g_pUsePICS)[12];
921#endif 921#endif
922 pSetValue(g_pUsePICS, "1"); 922 pSetValue(g_pUsePICS, "1");
923 923