iw4x-client/src/Components/Modules/Localization.hpp

25 lines
670 B
C++
Raw Normal View History

2017-01-20 08:36:52 -05:00
#pragma once
2017-01-19 16:23:59 -05:00
namespace Components
{
class Localization : public Component
{
public:
Localization();
~Localization();
2018-12-17 08:29:18 -05:00
static void Set(const std::string& key, const std::string& value);
2017-01-19 16:23:59 -05:00
static const char* Get(const char* key);
private:
static std::recursive_mutex LocalizeMutex;
static std::unordered_map<std::string, Game::LocalizeEntry*> LocalizeMap;
static Dvar::Var UseLocalization;
static void __stdcall SetStringStub(const char* key, const char* value, bool isEnglish);
2017-02-08 10:25:48 -05:00
static void SetCredits();
2022-08-31 16:21:26 -04:00
static const char* SEH_LocalizeTextMessageStub(const char* pszInputBuffer, const char* pszMessageType, Game::msgLocErrType_t errType);
2017-01-19 16:23:59 -05:00
};
}