cycloid wrote:
that's pretty much what i thought: do it in 3.x as os friendly as possible and port it later , cheers
Shouldnt be too difficult in general but please remember yuo dont have 68k registers in PPC. For example in hooks you retrieve parameters from A0/A1/A2 but in OS4 68k registers are mapped somewhere else. You probably need macros for function prototypes in this case.
There could be other issues too like stack usage... reading morphos dev guidelines (it is somewhere in morphos.net IIRC) can be some use here. Although it is not for OS4 but worth of reading anyway I think... Especially taking care of proper alignment is important.