0
0
Fork 0
mirror of https://github.com/dhewm/dhewm3.git synced 2025-03-28 21:40:47 +00:00
dhewm3/neo/framework
Daniel Gibson b0d022f559 Fix crash when selecting nonexistant texture in D3Radiant
When selecting a texture in Inspectors -> Media -> Textures that doesn't
really exist (.mtr defines it, but referenced image files are missing),
the game/editor used to crash.
The problem was that somehow people thought the best way to communicate
that a file wasn't found was by setting the timestamp to 0xFFFFFFFF
and then checking for that - sometimes (incorrectly) by comparing it to -1.
That worked for 32bit ID_TIME_T (typedefed to time_t), but not with 64bit
time_t, which now seems to be the default for Win32 in VS.
So I replaced a few -1 and 0xFF... with FILE_NOT_FOUND_TIMESTAMP and now it
works.
FILE_NOT_FOUND_TIMESTAMP is still defined as 0xFFFFFFFF, maybe I should
change that, unsure if that'd break anything though..
When changing it one should keep in mind that time_t might still be 32bit
on some platforms (Linux x86?) so that should still work.. (-1 could work)
2019-03-10 05:11:33 +01:00
..
async CD-Key check for internet-games can now be disabled 2012-11-13 23:48:15 +01:00
minizip A little change to minizips ioapi.h for OpenBSD 2018-11-23 00:20:02 +01:00
BuildDefines.h Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
BuildVersion.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
CmdSystem.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
CmdSystem.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Common.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
Common.h Modify check for Demo version to not break Game DLL ABI 2019-01-07 15:06:59 +01:00
Compressor.cpp Use int instead of long in idCompressor_Arithmetic methods 2012-06-28 13:02:46 +02:00
Compressor.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Console.cpp Building with editor support (on Win w/ VS2017) works \o/ 2019-01-13 22:52:28 +01:00
Console.h Make console history persistent 2012-11-13 23:21:38 +01:00
CVarSystem.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
CVarSystem.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclAF.cpp Fixing some spelling errors: s/unkown/unknown, s/seperate/separate. () 2015-02-25 22:01:00 +01:00
DeclAF.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclEntityDef.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclEntityDef.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclFX.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclFX.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclManager.cpp More logging cleanup 2012-07-20 00:12:55 +02:00
DeclManager.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclParticle.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclParticle.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclPDA.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclPDA.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclSkin.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclSkin.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclTable.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DeclTable.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DemoChecksum.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00
DemoFile.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
DemoFile.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
EditField.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
EditField.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
EventLoop.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
EventLoop.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
File.cpp Replace custom unzip functions with standard ones 2013-06-12 00:07:09 +02:00
File.h Replace custom unzip functions with standard ones 2013-06-12 00:07:09 +02:00
FileSystem.cpp Fall back to demo/ if no gamedata can be found in base/ 2019-01-07 15:06:59 +01:00
FileSystem.h Fix crash when selecting nonexistant texture in D3Radiant 2019-03-10 05:11:33 +01:00
Game.h idCommon::SetCallback() and GetAdditionalFunction() - for Mods 2018-09-30 05:06:20 +02:00
GameCallbacks_local.h idCommon::SetCallback() and GetAdditionalFunction() - for Mods 2018-09-30 05:06:20 +02:00
KeyInput.cpp Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
KeyInput.h Untangle the epic precompiled.h mess 2011-12-19 23:21:47 +01:00
Licensee.h Bump version to 1.5.1pre 2019-01-07 15:06:59 +01:00
Session.cpp Modify check for Demo version to not break Game DLL ABI 2019-01-07 15:06:59 +01:00
Session.h Modify check for Demo version to not break Game DLL ABI 2019-01-07 15:06:59 +01:00
Session_local.h Modify check for Demo version to not break Game DLL ABI 2019-01-07 15:06:59 +01:00
Session_menu.cpp Get rid of ID_DEMO_BUILD 2012-07-03 21:12:55 +02:00
Unzip.h Use updated minizip version for unzip 2013-06-12 00:07:09 +02:00
UsercmdGen.cpp s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
UsercmdGen.h Fix all whitespace errors 2011-12-10 15:35:54 +01:00