From abf8cd813bb0ac4f4f5451d2af929279d816abac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Apr 2018 23:04:26 +0300 Subject: core changes: - PROTOCOLDESCRIPTOR's implementation hidden inside mir_app; - Proto_RegisterModule now doesn't need a PROTOCOLDESCRIPTOR structure; - PROTOTYPE_PROTOWITHACCS type added for protos that work with accounts --- plugins/mRadio/mradio.dpr | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins/mRadio') diff --git a/plugins/mRadio/mradio.dpr b/plugins/mRadio/mradio.dpr index a61dae29c5..d7cb1dade7 100644 --- a/plugins/mRadio/mradio.dpr +++ b/plugins/mRadio/mradio.dpr @@ -201,16 +201,9 @@ exports Load, Unload, MirandaPluginInfoEx; -var - desc:TPROTOCOLDESCRIPTOR; - begin // register protocol - desc.cbSize:=SizeOf(desc); - desc.szName:=PluginName; - desc._type :=PROTOTYPE_VIRTUAL; - Proto_RegisterModule(@desc); - + Proto_RegisterModule(PROTOTYPE_VIRTUAL,PluginName); Proto_SetUniqueId(PluginName,optStationURL); DisableThreadLibraryCalls(hInstance); -- cgit v1.2.3