Can Loadplugin() be linked?

Find quick help here to get you started with Hollywood
Post Reply
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

Can Loadplugin() be linked?

Post by amyren »

I use hurl in a program, but the program can also operate in local mode. Until now the program uses @REQUIRE to load hurl, but I want be able to load it only when needed. But I also would like to have the hurl.hwp baked into the program, like when using link = true.
It works if I put hurl.hwp in the program directory and use

Code: Select all

LoadPlugin("hurl.hwp")

But I dont know how to link it, I did try

Code: Select all

LoadPlugin("hurl.hwp", {Link = True})
and

Code: Select all

LoadPlugin(GetDirectoryEntry(1, "hurl.hwp"))
Hollywood does not complain about this, but it just doesnt work.
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Can Loadplugin() be linked?

Post by SamuraiCrow »

Is hurl.hwp in the appropriate static linkage directory for your operating system?
I'm on registered MorphOS using FlowStudio.
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

Re: Can Loadplugin() be linked?

Post by amyren »

Yes, it is in the linkerplugins directory.
And linking works perfectly when using @REQUIRE "hurl", {Link = True}
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Can Loadplugin() be linked?

Post by airsoftsoftwair »

LoadPlugin() currently can't be used with virtual files or files linked to an applet. I probably won't change this because it would involve saving the file to a temporary file first which somewhat defeats the whole idea of linking files to applets/executables.
Post Reply