diff options
| author | Nvinside <Nvinside@eced67a3-f377-a0ae-92ae-d6de1850b05a> | 2011-07-04 23:19:30 +0000 |
|---|---|---|
| committer | Nvinside <Nvinside@eced67a3-f377-a0ae-92ae-d6de1850b05a> | 2011-07-04 23:19:30 +0000 |
| commit | 730ca7df52f2d5bec80da755eac0f140f6be5929 (patch) | |
| tree | 30c8ccde244dff67f3b68f9930377c6e584817d3 /MirOTR/dllmain.cpp | |
| parent | 2e492f551d85eca9b6e55a91c9d7c9b6cee958c5 (diff) | |
- small project cleanup
- typo fix
- context-sensitive langpacks support
git-svn-id: http://mirotr.googlecode.com/svn/trunk@58 eced67a3-f377-a0ae-92ae-d6de1850b05a
Diffstat (limited to 'MirOTR/dllmain.cpp')
| -rw-r--r-- | MirOTR/dllmain.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/MirOTR/dllmain.cpp b/MirOTR/dllmain.cpp index c237d73..156ae3a 100644 --- a/MirOTR/dllmain.cpp +++ b/MirOTR/dllmain.cpp @@ -10,6 +10,7 @@ HINSTANCE hInst; PLUGINLINK *pluginLink;
MM_INTERFACE mmi;
UTF8_INTERFACE utfi;
+int hLangpack;
char* g_metaproto;
@@ -22,14 +23,14 @@ PLUGININFOEX pluginInfo={ AUTHOR_MAIL,
LEGAL_COPYRIGHT_LONG,
HOMEPAGE,
- UNICODE_AWARE, //not transient
- 0, //doesn't replace anything built-in
- MIID_OTRPLUGIN // ANSI and Unicode have different IDs
+ UNICODE_AWARE, // not transient
+ 0, // doesn't replace anything built-in
+ MIID_OTRPLUGIN // ANSI and Unicode have different IDs
};
BOOL APIENTRY DllMain( HMODULE hModule,
- DWORD ul_reason_for_call,
- LPVOID lpReserved
+ DWORD ul_reason_for_call,
+ LPVOID lpReserved
)
{
if (ul_reason_for_call == DLL_PROCESS_ATTACH) {
@@ -141,8 +142,11 @@ DLLFUNC int Load(PLUGINLINK *link) {
DEBUGOUT_T("LOAD MIROTR")
pluginLink=link;
+ mir_getLP( &pluginInfo );
mir_getMMI(&mmi);
mir_getUTFI(&utfi);
+ /* for timezones
+ mir_getTMI(&tmi); */
CallService(MS_DB_SETSETTINGRESIDENT, TRUE, (LPARAM)(MODULENAME "/TrustLevel"));
|
