Remember me

Lost Password?

Register now!


Who's Online
49 user(s) are online (30 user(s) are browsing Forums)

Members: 1
Guests: 48

NinjaCyborg, more...

Support us!


Report message:*

Re: Porting apitrace

Subject: Re: Porting apitrace
by kas1e on 2019/4/3 19:00:38

Cool, will check it now.

But just in case, and maybe it will be of any help when there is working aos4 example: in dopus5 we do use SetMethod() when patching some librarie's functions (workbench, dos, icon, intuition, exec):

https://sourceforge.net/p/dopus5allami ... trunk/source/Library/wb.c


https://sourceforge.net/p/dopus5allami ... trunk/source/Library/wb.h

There we use PATCH macro (in wb.h, and its corssplatform, so check for amigaos4 ifdef) , which then used in that wb.c file (check whole wb.c , we there made patched functions, which also return control to originals in case of fail, etc) and on the line 2306 of wb.c we start to install patches. On line 2390 of wb.c, you can see general fucntion which actually do call SetMethod() for amigaos4, and SetFunction for mos,aros and aos3.

Maybe it will be of any help.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project