From 9e211fa67e180affc7ddc66efd9af85c55b99e73 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 28 Mar 2018 14:40:02 +0300 Subject: also plugin auto-loader for mRadio --- plugins/mRadio/mradio.dpr | 17 +++++++++-------- 1 file 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. -- cgit v1.2.3