Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
105 user(s) are online (80 user(s) are browsing Forums)

Members: 0
Guests: 105

more...

Support us!

Recent OS4 Files
OS4Depot.net

Report message:*
 

Re: Porting apitrace

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

@Capehill
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

and

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