diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-28 14:40:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-28 14:40:02 +0300 |
commit | 9e211fa67e180affc7ddc66efd9af85c55b99e73 (patch) | |
tree | 5317c3aaf32abd2beca97647648711c42e9ec7ab /plugins | |
parent | a905c9c3f92fd54f37a5466649ac378db69e7cb0 (diff) |
also plugin auto-loader for mRadio
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mRadio/mradio.dpr | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/mRadio/mradio.dpr b/plugins/mRadio/mradio.dpr index 71670e1947..9f55ee4f2b 100644 --- a/plugins/mRadio/mradio.dpr +++ b/plugins/mRadio/mradio.dpr @@ -156,17 +156,9 @@ begin end;
function Load: int; cdecl;
-var
- desc:TPROTOCOLDESCRIPTOR;
begin
Langpack_register;
- // register protocol
- desc.cbSize:=SizeOf(desc);
- desc.szName:=PluginName;
- desc._type :=PROTOTYPE_VIRTUAL;
- Proto_RegisterModule(@desc);
-
// hooks and services
hhRadioStatus:=CreateHookableEvent(ME_RADIO_STATUS);
@@ -209,6 +201,15 @@ exports Load, Unload,
MirandaPluginInfoEx;
+var
+ desc:TPROTOCOLDESCRIPTOR;
+
begin
+ // register protocol
+ desc.cbSize:=SizeOf(desc);
+ desc.szName:=PluginName;
+ desc._type :=PROTOTYPE_VIRTUAL;
+ Proto_RegisterModule(@desc);
+
DisableThreadLibraryCalls(hInstance);
end.
|