diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-18 20:40:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-18 20:40:44 +0300 |
commit | 37a022d37e79dbe9892f376ef7c3b6b8878c4aff (patch) | |
tree | 2700034a1955c16cb5eff5ffb944cc2eb7d9c00f /src/mir_app | |
parent | 5335298d8eb7571db123afb3bd1340cd949a8208 (diff) |
hLangpack variable began migration inside CMPluginBase
it remains existing for now, but as reference to g_plugin.m_hLang
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/CMPluginBase.cpp | 4 | ||||
-rw-r--r-- | src/mir_app/src/miranda.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/mir_app/src/CMPluginBase.cpp b/src/mir_app/src/CMPluginBase.cpp index 3c6cc3da85..6fc1b0c689 100644 --- a/src/mir_app/src/CMPluginBase.cpp +++ b/src/mir_app/src/CMPluginBase.cpp @@ -47,6 +47,8 @@ void CMPluginBase::tryOpenLog() m_hLogger = mir_createLog(m_szModuleName, nullptr, path, 0); } +///////////////////////////////////////////////////////////////////////////////////////// + void CMPluginBase::debugLogA(LPCSTR szFormat, ...) { if (m_hLogger == nullptr) @@ -69,6 +71,8 @@ void CMPluginBase::debugLogW(LPCWSTR wszFormat, ...) va_end(args); } +///////////////////////////////////////////////////////////////////////////////////////// + void CMPluginBase::RegisterProtocol(int type, pfnInitProto fnInit, pfnUninitProto fnUninit) { if (type == PROTOTYPE_PROTOCOL && fnInit != nullptr) diff --git a/src/mir_app/src/miranda.cpp b/src/mir_app/src/miranda.cpp index ddb648ad60..bf212c1c76 100644 --- a/src/mir_app/src/miranda.cpp +++ b/src/mir_app/src/miranda.cpp @@ -55,7 +55,7 @@ bool bModulesLoadedFired = false, bMirandaTerminated = false; int g_iIconX, g_iIconY, g_iIconSX, g_iIconSY;
CMPlugin g_plugin;
-int hLangpack = 0;
+int &hLangpack(g_plugin.m_hLang);
/////////////////////////////////////////////////////////////////////////////////////////
|