Amiga.org

Amiga computer related discussion => Amiga/MorphOS/AROS Programmers Forum => Topic started by: zurt on April 08, 2016, 04:59:05 PM

Title: Library Patching in Amiga E / ECX
Post by: zurt on April 08, 2016, 04:59:05 PM
Dear Amigans,

Currently I am undergoing some tests on library function patching using ECX compiler.

I have been able to patch certain function of Locale.library using exec's SetFunction() function and it worked.

However, I would like to keep the original function I have patched to be called after my code.

Example:

let {A} = locale.library/GetCatalogStr() original function

and

{B} = locale.library/GetCatalogStr() patched function

{B} = my code + {A}

I have tried several ways to achieve this, also tried to find some documentation on the topic with little or no sucess.

I do not know if this can be done in Amiga E.

PS: I have also tried http://de3.aminet.net/dev/e/EZPatch.readme, but this does not allow me to reuse the original function.

Thanks in avance.