Yes you are right. Katana executable are just raw binaries file where Windows CE binaries are executed through a complete/complex kernel.
So if I understand well, for
Super Robot Taisen α for Dreamcast, you want to hijack a function in the
HGL.DLL file? If yes, I think the method I gave here should work. You'll need to patch the
HGL.DLL reference in the game's EXE binary, by using a proxy DLL. In clear:
Before:
GAME.EXE --> HGL.DLL
After:
GAME.EXE --> PROXY.DLL (your DLL) --> HGL.DLL
By the way, I was using the same method in my
wcegdda project, but more complex because I was hijacking API from differents
DLL.
Before:
PB4.EXE
|--> MAPLEDEV.DLL (MapleCreateDevice/MapleEnumerateDevices)
|--> COREDLL.DLL(DeviceIoControl)
|--> DSOUND.DLL (DirectSoundCreate)
After:
PB4.EXE
|--> GDDAHOOK.DLL (MapleCreateDevice/MapleEnumerateDevices)
|------> MAPLEDEV.DLL (MapleCreateDevice/MapleEnumerateDevices)
|------> Custom DeviceIoControl for IOCTL_SEGACD_CD_PLAYTRACK/IOCTL_CDROM_PAUSE_AUDIO/... [COREDLL.DLL for other dwIoControlCodes]
|------> DSOUND.DLL (DirectSoundCreate)
Note: DirectSoundCreate and DeviceIoControl hijacked with "iathook" library at runtime, where MapleCreateDevice/MapleEnumerateDevices were physically hijacked by replacing MAPLEDEV.DLL in PB4.EXE with GDDAHOOK.DLL.
My
wcegdda project will be generic, but for now, I must debug it and I will be unavailable for 15 days at least. Plus my Set 5 is currently out-of-order for changing that battery.