From 9312817430d9fc3bc7df109870ceb2a5d9c4e9bb Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 18:59:30 +0000 Subject: [PATCH] Maintenance: Define two globals that main reads but never defines. g_applicationDirectory (gl_24584, 0x173AD78, char[0x80]) has one w Batch #1570 by ragnarok-clanker: no function's compiled code changes; checked with 5 compiled unit(s), including every includer of Source/Client/Application/Launcher.h, Source/Client/Input/InputCharset.h. --- Source/Client/Application/Launcher.cpp | 3 +++ Source/Client/Application/Launcher.h | 1 + Source/Client/Input/InputCharset.h | 2 ++ Source/Contents/Configuration/ServiceConfiguration.cpp | 4 ++++ 4 files changed, 10 insertions(+) diff --git a/Source/Client/Application/Launcher.cpp b/Source/Client/Application/Launcher.cpp index 88882bf3..a0209b99 100644 --- a/Source/Client/Application/Launcher.cpp +++ b/Source/Client/Application/Launcher.cpp @@ -8,6 +8,9 @@ // GLOBAL: gl_24472 std::uint32_t g_clientVersion; +// GLOBAL: gl_24584 +char g_applicationDirectory[0x80]; + // OFFSET: 0x00E58820 // FUNCTION: fn_24363 bool RestartFromCommandLine(char* commandLine) { diff --git a/Source/Client/Application/Launcher.h b/Source/Client/Application/Launcher.h index 2d6227bd..944c682c 100644 --- a/Source/Client/Application/Launcher.h +++ b/Source/Client/Application/Launcher.h @@ -5,6 +5,7 @@ #include extern std::uint32_t g_clientVersion; +extern char g_applicationDirectory[0x80]; bool RestartFromCommandLine(char* commandLine); diff --git a/Source/Client/Input/InputCharset.h b/Source/Client/Input/InputCharset.h index c4483cf7..15394776 100644 --- a/Source/Client/Input/InputCharset.h +++ b/Source/Client/Input/InputCharset.h @@ -13,4 +13,6 @@ struct InputCharset { unsigned CodePage(unsigned fallback) const; }; +extern InputCharset* g_serverLanguage; + #endif diff --git a/Source/Contents/Configuration/ServiceConfiguration.cpp b/Source/Contents/Configuration/ServiceConfiguration.cpp index 60188f54..dd05d148 100644 --- a/Source/Contents/Configuration/ServiceConfiguration.cpp +++ b/Source/Contents/Configuration/ServiceConfiguration.cpp @@ -1,7 +1,11 @@ +#include "Client/Input/InputCharset.h" #include "Contents/Configuration/ServiceConfiguration.h" // GLOBAL: gl_24542 signed char g_language = 0; +// GLOBAL: gl_24544 +InputCharset* g_serverLanguage; + // GLOBAL: gl_24529 int g_serviceType = 0;