Baron-von-Riedesel / HX

Home of the HX DOS Extender and its included DPMI-host HDPMI.
197 stars 14 forks source link

Annoying cursor at the middle of the screen with game Liberal Crime Squad #6

Open baruchel opened 5 years ago

baruchel commented 5 years ago

The PESTUB tool seems to work fine except for a strange gray block appearing in the middle at the screen; is it possible to fix that in some way?

Download URL of the game: http://www.bay12games.com/lcs/

misutoneko commented 3 years ago

Late answer, but you can try binary patching it out: Using Jan 17 version of DKRNL32.DLL as an example: Change the byte at offset 0x49d5 from 0x01 to 0x02. This will in effect change KernelShowMouse() into a KernelHideMouse(). These functions call int 0x33 (as seen in SrcEmu/DKRNL32/MOUSE.ASM) and the value in ax determines whether to hide or show the mouse cursor. From then on the patched DLL won't be very useful for stuff that needs a mouse...

Recompiling LCS 3.09 with a recent version of PDCurses will also fix it (it's a bit tedious to set up though). Since the mouse cursor isn't visible in Windows or dosemu2, it is possible that something could be done about it in HX.