PluginDemo

serk118uk · 141

serk118uk

  • Newbie
  • *
    • Posts: 43
    • Karma: +6/-0
on: March 16, 2021, 06: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

  • Newbie
  • *
    • Posts: 38
    • Karma: +6/-0
Reply #1 on: March 17, 2021, 07: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

  • Newbie
  • *
    • Posts: 43
    • Karma: +6/-0
Reply #2 on: March 17, 2021, 10: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...