diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/miranda.h | 1 | ||||
-rw-r--r-- | src/modules/langpack/lpservices.cpp | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/core/miranda.h b/src/core/miranda.h index 7c356dab6d..8c3a3b1d20 100644 --- a/src/core/miranda.h +++ b/src/core/miranda.h @@ -124,6 +124,7 @@ extern HANDLE hOkToExitEvent, hModulesLoadedEvent, hevLoadModule, hevUnloadModul /**** newplugins.cpp *******************************************************************/
char* GetPluginNameByInstance(HINSTANCE hInstance);
+int GetPluginLangByInstance(HINSTANCE hInstance);
int GetPluginFakeId(const MUUID &uuid, int hLangpack);
/**** utf.cpp **************************************************************************/
diff --git a/src/modules/langpack/lpservices.cpp b/src/modules/langpack/lpservices.cpp index 36f9e3c40b..01a1f9cf07 100644 --- a/src/modules/langpack/lpservices.cpp +++ b/src/modules/langpack/lpservices.cpp @@ -80,7 +80,7 @@ static INT_PTR srvPcharToTchar(WPARAM wParam, LPARAM lParam) /////////////////////////////////////////////////////////////////////////////////////////
-INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam)
+static INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam)
{
ReloadLangpack(( TCHAR* )lParam);
return 0;
@@ -88,6 +88,13 @@ INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam) /////////////////////////////////////////////////////////////////////////////////////////
+static INT_PTR srvGetPluginLangpack(WPARAM wParam, LPARAM lParam)
+{
+ return GetPluginLangByInstance(( HINSTANCE )lParam);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
MIR_CORE_DLL(int) LoadLangPackModule(void);
int LoadLangpackModule(void)
@@ -101,5 +108,7 @@ int LoadLangpackModule(void) CreateServiceFunction(MS_LANGPACK_PCHARTOTCHAR, srvPcharToTchar);
CreateServiceFunction(MS_LANGPACK_REGISTER, srvRegisterLP);
CreateServiceFunction(MS_LANGPACK_RELOAD, srvReloadLangpack);
+ CreateServiceFunction(MS_LANGPACK_LOOKUPHANDLE, srvGetPluginLangpack);
+
return 0;
}
|