From ff72a169a797546d746057d29386a06e92bb3781 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Tue, 27 Feb 2024 21:20:51 +0800 Subject: [PATCH] [saco] Update `DumpMain(...)` --- saco/exceptions.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/saco/exceptions.cpp b/saco/exceptions.cpp index cc45862..b603435 100644 --- a/saco/exceptions.cpp +++ b/saco/exceptions.cpp @@ -10,8 +10,10 @@ PCONTEXT pContextRecord; extern HANDLE hInstance; extern CGame *pGame; +extern CNetGame *pNetGame; extern DWORD dwScmOpcodeDebug; extern BOOL bScmLocalDebug; +extern int iGtaVersion; extern WORD wLastRendObj; CHAR szErrorString[16384]; @@ -132,7 +134,17 @@ void DumpMain(BOOL bIncModules) sprintf(s,"\r\nSCM Op: 0x%X, lDbg: %d LastRendObj: %u\r\n", dwScmOpcodeDebug, bScmLocalDebug, wLastRendObj); strcat(szErrorString,s); - // TODO: DumpMain 100605B0 + const char *szGameVersion = (iGtaVersion == GTASA_VERSION_USA10) ? "US 1.0" : + (iGtaVersion == GTASA_VERSION_EU10) ? "EU 1.0" : + "UNKNOWN"; + sprintf(s, "\r\nGame Version: %s\r\n", szGameVersion); + strcat(szErrorString,s); + + if(pNetGame) + { + DumpNetworkStateInformation(s); + strcat(szErrorString,s); + } if (bIncModules) {