summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-18 20:40:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-18 20:40:44 +0300
commit37a022d37e79dbe9892f376ef7c3b6b8878c4aff (patch)
tree2700034a1955c16cb5eff5ffb944cc2eb7d9c00f /src/mir_core
parent5335298d8eb7571db123afb3bd1340cd949a8208 (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_core')
-rw-r--r--src/mir_core/src/icons.cpp4
-rw-r--r--src/mir_core/src/miranda.cpp1
-rw-r--r--src/mir_core/src/modules.cpp2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/mir_core/src/icons.cpp b/src/mir_core/src/icons.cpp
index 5488fd645d..df3f14af9b 100644
--- a/src/mir_core/src/icons.cpp
+++ b/src/mir_core/src/icons.cpp
@@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "stdafx.h"
-MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char *szSection, IconItem *pIcons, size_t iCount, char *prefix, int _hLang)
+MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char *szSection, IconItem *pIcons, size_t iCount, const char *prefix, int _hLang)
{
wchar_t szFile[MAX_PATH];
GetModuleFileName(hInst, szFile, MAX_PATH);
@@ -48,7 +48,7 @@ MIR_CORE_DLL(void) Icon_Register(HINSTANCE hInst, const char *szSection, IconIte
}
}
-MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const wchar_t *szSection, IconItemT *pIcons, size_t iCount, char *prefix, int _hLang)
+MIR_CORE_DLL(void) Icon_RegisterT(HINSTANCE hInst, const wchar_t *szSection, IconItemT *pIcons, size_t iCount, const char *prefix, int _hLang)
{
wchar_t szFile[MAX_PATH];
GetModuleFileName(hInst, szFile, MAX_PATH);
diff --git a/src/mir_core/src/miranda.cpp b/src/mir_core/src/miranda.cpp
index fda0f29a80..e4f0b50fe8 100644
--- a/src/mir_core/src/miranda.cpp
+++ b/src/mir_core/src/miranda.cpp
@@ -40,7 +40,6 @@ void InitMetaContacts();
void InitTimeZones();
void InitWinver();
-int hLangpack = 0;
HINSTANCE g_hInst = nullptr;
HCURSOR g_hCursorNS, g_hCursorWE;
diff --git a/src/mir_core/src/modules.cpp b/src/mir_core/src/modules.cpp
index 086e584de9..6af89cbab2 100644
--- a/src/mir_core/src/modules.cpp
+++ b/src/mir_core/src/modules.cpp
@@ -702,6 +702,8 @@ struct CMPlugin : public CMPluginBase
{}
} g_plugin;
+int &hLangpack(g_plugin.m_hLang);
+
LIST<CMPluginBase> pluginListAddr(10, HandleKeySortT);
MIR_CORE_DLL(void) RegisterModule(CMPluginBase *pPlugin)