Maintenance: [forced, user-approved] CLanguage steps 2-4 (resubmit of #10182, which was returned only for the global rule). Fix: the

Batch #10183 by ragnarok-clanker: forced by an admin (6 lower score(s), 50 changed function(s)); checked with 115 compiled unit(s), including every includer of Source/Client/Input/InputCharset.h, Source/Client/Input/Language.h, Source/Client/Input/LanguageTC.h, Source/UI/Chat/ChatNotifications.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Text/TextWrapping.h, Source/Client/Input/ImeInput.h.
Deletes: Source/Client/Input/ImeInput.h
This commit is contained in:
ragnarok-clanker 2026-11-02 19:33:35 +00:00
commit 309774e67b
28 changed files with 207 additions and 240 deletions

View file

@ -1,4 +1,5 @@
#include "Client/Input/InputCharset.h"
#include "Client/Input/LanguageTC.h"
#include "Contents/Configuration/ServiceConfiguration.h"
#include "Archive/PakRegistry.h"
#include "Client/Application/ErrorDialog.h"
@ -29,7 +30,7 @@
signed char g_language = 0;
// GLOBAL: gl_24544
InputCharset* g_serverLanguage;
CLanguageBase* g_serverLanguage;
// GLOBAL: gl_24972
unsigned char g_startupSecondPhase;
@ -329,13 +330,13 @@ void sub_AD1270() {
// FUNCTION: fn_17811
void InitializeLanguage() {
// GLOBAL: gl_25359
static DefaultInputCharset defaultCharset;
static CLanguageBase defaultCharset;
// GLOBAL: gl_25360
static TraditionalChineseInputCharset traditionalChineseCharset;
static CLanguageTC traditionalChineseCharset;
// GLOBAL: gl_25361
static ThaiInputCharset thaiCharset;
static CLanguageTH thaiCharset;
// GLOBAL: gl_25362
static ArabicInputCharset arabicCharset;
static CLanguageArabic arabicCharset;
switch (g_serviceType) {
case 0: