PluginDemo

serk118uk · 2715

serk118uk

  • Member
  • ***
    • Posts: 187
    • Karma: +67/-0
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

Lets Build Not Destroy...


Mazze

  • Junior Member
  • **
    • Posts: 88
    • Karma: +36/-0
Reply #1 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.



serk118uk

  • Member
  • ***
    • Posts: 187
    • Karma: +67/-0
Reply #2 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..

Lets Build Not Destroy...