EDuke32 Changelog Unofficial archive

Build 2693

25 May 2012 · 7 commits by 2 authors · SVN

Builds by month 67 builds

Original log file · 20120525-2693.txt
------------------------------------------------------------------------
r2693 | helixhorned | 2012-05-25 08:23:58 -0700 (Fri, 25 May 2012) | 10 lines

On Windows, don't try to lowercase/uppercase filenames.

Most of the time, Windows file name lookup is case-insensitive. Reading the
docs (see MSDN's CreateFile help, for example), it seems like case-sensitivity
can be controlled on a per-file basis where applicable (NTFS), but people
should be concerned about matching case in the DEFs/on disk *especially* in
that case.

Also, note that this hack will not always help on systems with case-sensitive
lookup.
------------------------------------------------------------------------
r2692 | helixhorned | 2012-05-25 08:23:55 -0700 (Fri, 25 May 2012) | 13 lines

On Windows, check for case-mismatched file names on successful kopen4load().

When a file from the local file system is opened, its real file name is gotten
with SHGetFileInfo() and compared against the one that was passed. In the case
they're not identical, a warning is issued.

This is one step towards eliminating mismatched file names in DEFs etc., which
cause trouble on systems that look them up case-sensitively.  However, it's not
perfect because the issue is trickier than it appears on first sight.
For one thing, this will only check the last (i.e. file) part in the path,
falsely accepting mismatched directory names.  However for these, it reports
them ruthlessly, even for those names where the try-other-case hack (try all
uppercase, all lowercase) would find the correctly-cased file.
------------------------------------------------------------------------
r2691 | helixhorned | 2012-05-25 08:23:53 -0700 (Fri, 25 May 2012) | 1 line

Fix some *printf format-char/vararg mismatches on x86_64 in net.c.
------------------------------------------------------------------------
r2690 | helixhorned | 2012-05-25 08:23:50 -0700 (Fri, 25 May 2012) | 1 line

Bump BYTEVERSION because of the preceding change.
------------------------------------------------------------------------
r2689 | helixhorned | 2012-05-25 08:23:48 -0700 (Fri, 25 May 2012) | 6 lines

Fix gamearrays on 64-bit platforms.

They were broken by r2666, which made their elements intptr_t instead of
int32_t, but this change was not reflected in related allocation code.
WARNING: players on 64-bit platforms should not attempt to load games saved
with r2665 or earlier.
------------------------------------------------------------------------
r2688 | hendricks266 | 2012-05-24 22:14:19 -0700 (Thu, 24 May 2012) | 1 line

Add EVENT_LOADGAME and EVENT_SAVEGAME, self-explanatory. Also make EVENT_NEWGAME use myconnectindex for player ID instead of screenpeek.
------------------------------------------------------------------------
r2687 | hendricks266 | 2012-05-24 22:13:41 -0700 (Thu, 24 May 2012) | 1 line

Setting RETURN in EVENT_DISPLAYCROSSHAIR will now change the crosshair's picnum while allowing the game to position it, etc. As usual, setting RETURN to -1 disables hardcoded drawing of the crosshair completely.
------------------------------------------------------------------------

On Windows, don't try to lowercase/uppercase filenames.

Philipp Kutin (Helixhorned) 25 May 2012, 08:23 UTC−7 r2693

Most of the time, Windows file name lookup is case-insensitive. Reading the docs (see MSDN's CreateFile help, for example), it seems like case-sensitivity can be controlled on a per-file basis where applicable (NTFS), but people should be concerned about matching case in the DEFs/on disk *especially* in that case. Also, note that this hack will not always help on systems with case-sensitive lookup.

On Windows, check for case-mismatched file names on successful kopen4load().

Philipp Kutin (Helixhorned) 25 May 2012, 08:23 UTC−7 r2692

When a file from the local file system is opened, its real file name is gotten with SHGetFileInfo() and compared against the one that was passed. In the case they're not identical, a warning is issued. This is one step towards eliminating mismatched file names in DEFs etc., which cause trouble on systems that look them up case-sensitively. However, it's not perfect because the issue is trickier than it appears on first sight. For one thing, this will only check the last (i.e. file) part in the path, falsely accepting mismatched directory names. However for these, it reports them ruthlessly, even for those names where the try-other-case hack (try all uppercase, all lowercase) would find the correctly-cased file.

FixCON

Fix gamearrays on 64-bit platforms.

Philipp Kutin (Helixhorned) 25 May 2012, 08:23 UTC−7 r2689

They were broken by r2666, which made their elements intptr_t instead of int32_t, but this change was not reflected in related allocation code. WARNING: players on 64-bit platforms should not attempt to load games saved with r2665 or earlier.

CON

Add EVENT_LOADGAME and EVENT_SAVEGAME, self-explanatory. Also make EVENT_NEWGAME use myconnectindex for player ID instead of screenpeek.

Evan Ramos (Hendricks266) 24 May 2012, 22:14 UTC−7 r2688
CON

Setting RETURN in EVENT_DISPLAYCROSSHAIR will now change the crosshair's picnum while allowing the game to position it, etc. As usual, setting RETURN to -1 disables hardcoded drawing of the crosshair completely.

Evan Ramos (Hendricks266) 24 May 2012, 22:13 UTC−7 r2687