AROS World Exec

General => Help => Topic started by: serk118uk on March 16, 2021, 12:10:13 PM

Title: PluginDemo
Post by: serk118uk on March 16, 2021, 12:10:13 PM
Hi ppl,

I download "http://aminet.net/dev/c/PluginDemo.lha" aminet to understand how plugins works.

I edited the makefile and changed one line at master.c, compiles ok but it just wont work ,

somebody please have a look at the code why would this not run on aros. 

thanks
Title: Re: PluginDemo
Post by: Mazze on March 17, 2021, 01:11:03 PM
One line is for sure wrong:
              sl = (APTR)(realsl<<2);
must be:
              sl = (APTR)BADDR(realsl);

Reason: on i386 and x86_64 there is no difference between BCPL and APTR.
Title: Re: PluginDemo
Post by: serk118uk on March 17, 2021, 04:11:11 PM
Hi ppl,

I download "http://aminet.net/dev/c/PluginDemo.lha" aminet to understand how plugins works.

I edited the makefile and changed one line at master.c, compiles ok but it just wont work ,

somebody please have a look at the code why would this not run on aros. 

thanks

Thats what i changed to if you download the attachment but not sure why still wont work..