Ok, lets try logging.
Add -log -serlog to the winuae icon (i have a shortcut to my desktop, right click, properties, my target now reads "D:\winuae\winuae64.exe -log -serlog"
Now on your plugin code, somewhere near the top, define this prototype
Code:
int KPrintF(const char *, ...);
(since you already have in the makefile -lamiga -ldebug nothing else is needed)
Now, place right after the if of openlibs
Code:
KPrintF("Libraries opened ok\n");
and at the end of init()
Code:
KPrintF("Init's end reached\n");
Now, you should see those in the log window. If you do, great. Keep adding loging to hook
Code:
KPrintF("Hook called\n"); //fist line in your hook
...
...
KPrintF("Hook end reached\n"); //last line in your hook