Re: Re: Beta: 2.5 beta 6

Marcin Grzegorczyk <[email protected]> Mon, 19 Jun 2006 16:25:47 +0200
Newsgroups gmane.games.ttdpatch.general
Message-ID <[email protected]>
Josef Drexler wrote:
> [ttdpatchw.kbd]
> I admit that I don't know how this table actually works, Marcin wrote 
> that code.  But if you aren't really using it, removing it is probably 
> the best option.

The table simply maps one byte to another.  The default one has two 
mappings: 0x80 is mapped to 0x9E (TTDPatch's pre-Unicode idea of the 
Euro sign) and 0xE0 is mapped to itself (which was a different way to 
fix the same bug).

Looking at the svn diffs and the r482 source, I guess that the fix is to 
update checkforexitkey in patches/kbdhand.asm (use 3 instead of 0xe0 
(WINTTDX only!)).

Whether ttdpatchw.kbd still works right or not I cannot say -- other 
code has changed too much for me to be able to trace it yet.  (Does 
TTDPatchW use the Unicode version of WM_CHAR now?  If yes, then 
ttdpatchw.kbd is no longer useful; if no, it still might be.)

-- 
Marcin Grzegorczyk

--
TTDPatch mailing list.  To unsubscribe from the list, send an email to
[email protected] with the body (not the subject) of the
email containing only the word "unsubscribe" (without the quotes).
For more info please see http://www.ttdpatch.net/maillist.html