From cf67f12cb9e2508e661c717fa2966e858ef8ac59 Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Sat, 6 Dec 2025 11:25:15 +0300 Subject: [PATCH] Correct ilocalize.h and few method name changes --- public/engine/IEngineService.h | 4 ++-- public/localize/ilocalize.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/engine/IEngineService.h b/public/engine/IEngineService.h index e5e30475..ac4acf60 100644 --- a/public/engine/IEngineService.h +++ b/public/engine/IEngineService.h @@ -96,14 +96,14 @@ public: virtual void RegisterPrerequisite( IPrerequisite * ) = 0; // Same methods as ILocalize - virtual LocalizeStringIndex_t FindLocalizeTokenIndex(const char *tokenName) = 0; + virtual LocalizeStringIndex_t LookupLocalizationToken(const char *tokenName) = 0; // Same methods as IVEngineServer2 virtual void SetFrameTimeAmnesty( const char *amnesty, int, float frametime ) = 0; virtual const char *GetFrameTimeAmnesty( bool check_cvar ) = 0; virtual void unk301() = 0; #ifdef _LINUX - virtual void unk302() = 0; + virtual void UnregisterPrerequisite( IPrerequisite * ) = 0; #endif }; diff --git a/public/localize/ilocalize.h b/public/localize/ilocalize.h index cd3bdfd8..47e27d9f 100644 --- a/public/localize/ilocalize.h +++ b/public/localize/ilocalize.h @@ -17,7 +17,7 @@ // unicode character type // for more unicode manipulation functions #include -#ifndef _WCHAR_T_DEFINED +#if !defined(_WCHAR_T_DEFINED) && !defined(GNUC) typedef unsigned short wchar_t; #define _WCHAR_T_DEFINED #endif