summaryrefslogtreecommitdiff
path: root/plugins/HistoryPlusPlus/historypp.dpr
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2012-07-05 12:35:02 +0000
committerAlexey Kulakov <panda75@bk.ru>2012-07-05 12:35:02 +0000
commit3e577372cab9dde2981fb4ac143cacce0419b069 (patch)
treec08ee1d69b563c056d8facd7b45325a489972b77 /plugins/HistoryPlusPlus/historypp.dpr
parentc78cb0fb36db5ac84fdc6f012074a6c1cea68b1e (diff)
m_api: hide hLangpack from interface part
History++ small cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@770 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryPlusPlus/historypp.dpr')
-rw-r--r--plugins/HistoryPlusPlus/historypp.dpr17
1 files changed, 3 insertions, 14 deletions
diff --git a/plugins/HistoryPlusPlus/historypp.dpr b/plugins/HistoryPlusPlus/historypp.dpr
index f4716c5024..adba99a1cb 100644
--- a/plugins/HistoryPlusPlus/historypp.dpr
+++ b/plugins/HistoryPlusPlus/historypp.dpr
@@ -29,12 +29,10 @@ library historypp;
{$R 'hpp_res_ver.res' 'hpp_res_ver.rc'}
{$R 'hpp_opt_dialog.res' 'hpp_opt_dialog.rc'}
-{$I compilers.inc}
-
uses
Windows,
SysUtils,
- m_api in '..\inc\m_api.pas',
+ m_api,
Forms,
hpp_global in 'hpp_global.pas',
hpp_contacts in 'hpp_contacts.pas',
@@ -165,11 +163,11 @@ end;
function Load():Integer; cdecl;
begin
- CallService(MS_LANGPACK_REGISTER,WPARAM(@hLangpack),LPARAM(@PluginInfo));
+ Langpack_Register();
// Getting langpack codepage for ansi translation
hppCodepage := CallService(MS_LANGPACK_GETCODEPAGE, 0, 0);
- if (hppCodepage = CALLSERVICE_NOTFOUND) or (hppCodepage = CP_ACP) then
+ if hppCodepage = CP_ACP then
hppCodepage := GetACP();
// Checking the version of richedit is available, need 2.0+
hppRichEditVersion := InitRichEditLibrary;
@@ -183,15 +181,6 @@ begin
exit;
end;
- // Get profile dir
- SetLength(hppProfileDir, MAX_PATH);
- CallService(MS_DB_GETPROFILEPATH, MAX_PATH, lParam(@hppProfileDir[1]));
- SetLength(hppProfileDir, StrLen(pAnsiChar(@hppProfileDir[1])));
- // Get plugins dir
- SetLength(hppPluginsDir, MAX_PATH);
- SetLength(hppPluginsDir, GetModuleFileNameW(hInstance, @hppPluginsDir[1], MAX_PATH));
- hppDllName := ExtractFileName(hppPluginsDir);
- hppPluginsDir := ExtractFilePath(hppPluginsDir);
// init history functions later
HookModulesLoad := HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoad);
HookOptInit := HookEvent(ME_OPT_INITIALISE, OnOptInit);