From 1400de8b1f218de6f65a3a80a32c519347811f8e Mon Sep 17 00:00:00 2001 From: superp00t Date: Wed, 10 Jul 2024 02:56:31 -0400 Subject: [PATCH] feat(symbol): add more console and gx symbols --- 3.3.5a/symbol/console/func.sym | 15 +++++++++++++-- 3.3.5a/symbol/console/label.sym | 1 + 3.3.5a/symbol/gx/func.sym | 5 +++++ 3.3.5a/symbol/main.sym | 23 ++++++++++++++++++++++- 3.3.5a/symbol/os/func.sym | 3 +++ 3.3.5a/symbol/storm/func.sym | 1 + 6 files changed, 45 insertions(+), 3 deletions(-) diff --git a/3.3.5a/symbol/console/func.sym b/3.3.5a/symbol/console/func.sym index f68ca07..9a08bd6 100644 --- a/3.3.5a/symbol/console/func.sym +++ b/3.3.5a/symbol/console/func.sym @@ -1,10 +1,18 @@ CVar__Register 00767fc0 f CVar__Initialize 00768340 f +CVar__Set 007668c0 f +CVar__Destroy 007673f0 f +CVarSaveFile 00767100 f +CVarLoadFile 00766530 f ConsoleAccessGetEnabled 00769230 f ConsoleCommand_Quit 00768410 f ConsoleCommandExecute 007658a0 f ConsoleCommandHistory 00768440 f +ConsoleCommandHistoryDepth 0095bfb0 f +ConsoleCommandHistoryPrev 00763b40 f ; UC +ConsoleCommandHistoryNext 00763b90 f ; UC ConsoleCommandRegister 00769100 f +ConsoleCommandUnregister 007689e0 f ConsoleDeviceInitialize 0076ab80 f ConsolePostClose 00763c50 f ConsoleScreenInitialize 00766140 f @@ -22,6 +30,9 @@ MakeCommandCurrent 00763a60 f ReserveInputSpace 007637d0 f GetInputLine 00764520 f PasteInInputLine 00764800 f -SetInputString 00763730 f +SetInputString 00763730 f ; UC ResetHighlight 00763830 f -UpdateHighlight 00763860 f \ No newline at end of file +UpdateHighlight 00763860 f +DrawCaret 007641a0 f +DrawBackground 00763df0 f +DrawHighLight 00764040 f \ No newline at end of file diff --git a/3.3.5a/symbol/console/label.sym b/3.3.5a/symbol/console/label.sym index 9a4df5f..82474a9 100644 --- a/3.3.5a/symbol/console/label.sym +++ b/3.3.5a/symbol/console/label.sym @@ -4,6 +4,7 @@ g_consoleCommandHash 00caba30 l ; TSHashTable g_defaultCommand 00caba2c l ; command function pointer s_active 007649af l ; int32 as boolean s_baseTextFlags 00adbae4 l ; uint32 +s_batch 00ca1874 l ; CGxStringBatch* s_caret 00ca1694 l ; int32 s_caretpixwidth 00ca1718 l s_caretpixheight 00ca1690 l diff --git a/3.3.5a/symbol/gx/func.sym b/3.3.5a/symbol/gx/func.sym index 3cd9ed7..38497c3 100644 --- a/3.3.5a/symbol/gx/func.sym +++ b/3.3.5a/symbol/gx/func.sym @@ -1,15 +1,20 @@ GxDevApi 00682d20 f GxDrawLockedElements 00682340 f GxLog 006817e0 f +GxRsPush 00409670 f +GxRsPop 00685fb0 f GxPrimIndexPtr 00681ab0 f GxPrimLockVertexPtrs 006828c0 f GxPrimVertexPtr_FFP 00682400 f ; this is one of the functions named 'GxPrimVertexPtr' that uses the fixed-function pipeline GxuDetermineQuotedCode 006bd5a0 f +GxuFontClearBatch 006be390 f GxuFontAddToBatch 006bce10 f +GxuFontCreateBatch 006bf160 f GxuFontCreateString 006be2b0 f GxuFontDestroyString 006bdfc0 f GxuFontGetMaxCharsWithinWidth 006bcea0 f GxuFontGetTextExtent 006bce60 f +GxuFontRenderBatch 006bce40 f GxuFontSetStringPosition 006bd0a0 f CGxDevice__CGxDevice 00688690 f CGxDevice__MasterEnableSet 00685eb0 f diff --git a/3.3.5a/symbol/main.sym b/3.3.5a/symbol/main.sym index 9c40303..cef395e 100644 --- a/3.3.5a/symbol/main.sym +++ b/3.3.5a/symbol/main.sym @@ -8,14 +8,22 @@ CGxDevice__IRsForceUpdate 006859e0 f CGxDevice__MasterEnableSet 00685eb0 f CGxDevice__s_shadowConstants 00c5dfe0 l CGxDevice__vtable 00a2ddc0 l +CVarLoadFile 00766530 f +CVarSaveFile 00767100 f +CVar__Destroy 007673f0 f CVar__Initialize 00768340 f CVar__Register 00767fc0 f +CVar__Set 007668c0 f CmdLineProcess 0047b720 f CommonMain 00406c70 f ConsoleAccessGetEnabled 00769230 f ConsoleCommandExecute 007658a0 f ConsoleCommandHistory 00768440 f +ConsoleCommandHistoryDepth 0095bfb0 f +ConsoleCommandHistoryNext 00763b90 f ; UC +ConsoleCommandHistoryPrev 00763b40 f ; UC ConsoleCommandRegister 00769100 f +ConsoleCommandUnregister 007689e0 f ConsoleCommand_Quit 00768410 f ConsoleDeviceInitialize 0076ab80 f ConsolePostClose 00763c50 f @@ -23,6 +31,9 @@ ConsoleScreenInitialize 00766140 f ConsoleWrite 00765270 f ConsoleWriteA 007653b0 f DestroyGlobal 00406b70 f +DrawBackground 00763df0 f +DrawCaret 007641a0 f +DrawHighLight 00764040 f EventCloseCallback 00763d60 f EventCreateContextEx 0047d080 f EventDoMessageLoop 0047f2d0 f @@ -40,12 +51,17 @@ GxLog 006817e0 f GxPrimIndexPtr 00681ab0 f GxPrimLockVertexPtrs 006828c0 f GxPrimVertexPtr_FFP 00682400 f ; this is one of the functions named 'GxPrimVertexPtr' that uses the fixed-function pipeline +GxRsPop 00685fb0 f +GxRsPush 00409670 f GxuDetermineQuotedCode 006bd5a0 f GxuFontAddToBatch 006bce10 f +GxuFontClearBatch 006be390 f +GxuFontCreateBatch 006bf160 f GxuFontCreateString 006be2b0 f GxuFontDestroyString 006bdfc0 f GxuFontGetMaxCharsWithinWidth 006bcea0 f GxuFontGetTextExtent 006bce60 f +GxuFontRenderBatch 006bce40 f GxuFontSetStringPosition 006bd0a0 f IEvtSchedulerProcess 0047f230 f InitializeGlobal 004067f0 f @@ -56,7 +72,10 @@ OnIdle 007659c0 f OnKeyDown 00765af0 f OnKeyDownRepeat 00764b90 f OnKeyUp 00763be0 f +OsCloseFile 00461b00 f OsCreateFile 00406b70 f +OsGetFileSize 00461bd0 f +OsReadFile 00461b50 f OsSystemEnableCpuLog 0086b0c0 f PaintBackground 007643f0 f PaintText 007645e0 f @@ -86,6 +105,7 @@ SStrCmpI 0076e780 f SStrCopy 0076ed20 f SStrHashHT 0076f640 f SStrLen 0076ee30 f +SStrPack 0076ef70 f ; double-check this SStrPrintf 0076f070 f SStrTokenize 0076f1e0 f SStrVPrintf 0076f0a0 f @@ -2098,7 +2118,7 @@ Script_VoiceSelectOutputDevice 007DACF0 f Script_WithdrawGuildBankMoney 005A5EF0 f Script_ZoomOut 00546A90 f ScrnLayerCreate 004a8bb0 f -SetInputString 00763730 f +SetInputString 00763730 f ; UC SetPaths 00402b20 f StormInitialize 007739e0 f StormSetOption 00773a80 f @@ -2115,6 +2135,7 @@ g_theGxDevicePtr 00c5df88 l s_NumLines 00ca197c l ; int32 s_active 007649af l ; int32 as boolean s_baseTextFlags 00adbae4 l ; uint32 +s_batch 00ca1874 l ; CGxStringBatch* s_caret 00ca1694 l ; int32 s_caretpixheight 00ca1690 l s_caretpixwidth 00ca1718 l diff --git a/3.3.5a/symbol/os/func.sym b/3.3.5a/symbol/os/func.sym index c92d725..789add0 100644 --- a/3.3.5a/symbol/os/func.sym +++ b/3.3.5a/symbol/os/func.sym @@ -1,2 +1,5 @@ OsCreateFile 00406b70 f +OsGetFileSize 00461bd0 f +OsReadFile 00461b50 f +OsCloseFile 00461b00 f OsSystemEnableCpuLog 0086b0c0 f \ No newline at end of file diff --git a/3.3.5a/symbol/storm/func.sym b/3.3.5a/symbol/storm/func.sym index 7c28866..63dc29a 100644 --- a/3.3.5a/symbol/storm/func.sym +++ b/3.3.5a/symbol/storm/func.sym @@ -16,6 +16,7 @@ SStrCmpI 0076e780 f SStrCopy 0076ed20 f SStrHashHT 0076f640 f SStrLen 0076ee30 f +SStrPack 0076ef70 f ; double-check this SStrPrintf 0076f070 f SStrVPrintf 0076f0a0 f SStrTokenize 0076f1e0 f