From f68c89528641da06a1e61c5343b8c964f49a584d Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 16 Nov 2016 20:36:00 +0100 Subject: [PATCH] [Localization] Remove legacy localizations --- src/Components/Modules/Localization.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Components/Modules/Localization.cpp b/src/Components/Modules/Localization.cpp index 52361182..6375912a 100644 --- a/src/Components/Modules/Localization.cpp +++ b/src/Components/Modules/Localization.cpp @@ -161,12 +161,15 @@ namespace Components // Resolving hook Utils::Hook(0x629B90, Localization::Get, HOOK_JUMP).Install()->Quick(); +#ifdef DEBUG // Set loading entry point Utils::Hook(0x41D859, Localization::SELoadLanguageStub, HOOK_CALL).Install()->Quick(); +#endif // Overwrite SetString Utils::Hook(0x4CE5EE, Localization::SetStringStub, HOOK_CALL).Install()->Quick(); +/* // TODO: Get rid of those! Localization::Set("MENU_SEARCHINGFORGAMES_100MS", ""); Localization::Set("MP_SEARCHING_FOR_PLAYER", "Waiting"); @@ -192,7 +195,8 @@ namespace Components Localization::Set("MPUI_DESC_QUIT", "Quit the game."); Localization::Set("PLATFORM_REFRESH_LIST", "Refresh List ^0- ^3F5"); - Localization::Set("PLATFORM_REFRESH_LIST_CAPS", "REFRESH LIST ^0- ^3F5"); + Localization::Set("PLATFORM_REFRESH_LIST_CAPS", "REFRESH LIST ^0- ^/*3F5"); +*/ Localization::UseLocalization = Dvar::Register("ui_localize", true, Game::dvar_flag::DVAR_FLAG_NONE, "Use localization strings"); }