From: molivier Date: Wed, 1 Dec 2004 14:00:52 +0000 (+0000) Subject: Fixed FS_Seek for unpacked files when FS_USESYSCALLS is defined (should fix HalfLife... X-Git-Tag: xonotic-v0.1.0preview~5326 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b49a46bba2dafb959179500f9100047119a4694a;p=xonotic%2Fdarkplaces.git Fixed FS_Seek for unpacked files when FS_USESYSCALLS is defined (should fix HalfLife WAD loading) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4811 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/fs.c b/fs.c index 2f00c1ea..6544ff76 100644 --- a/fs.c +++ b/fs.c @@ -1627,7 +1627,11 @@ int FS_Seek (qfile_t* file, long offset, int whence) // Quick path for unpacked files if (! (file->flags & FS_FLAG_PACKED)) #ifdef FS_USESYSCALLS - return lseek (file->stream, offset, whence); + { + if (lseek (file->stream, offset, whence) == -1) + return -1; + return 0; + } #else return fseek (file->stream, offset, whence); #endif diff --git a/todo b/todo index f943028b..f4a7385a 100644 --- a/todo +++ b/todo @@ -10,6 +10,7 @@ -d (Urre, Harb, FrikaC) darkplaces protocol: add PRYDON_CLIENTCURSOR extension - clientside mouse with highlighting of selected entities with the EF_SELECTABLE flag, and qc fields on the client entity on the server would indicate which entity the cursor is highlighting as well as where it is (Urre, Harb, FrikaC) -d (Vermeulen) darkplaces protocol: add DP_SV_BUTTONCHAT extension to document the addition of .buttonchat to indicate if someone is not in key_game mode, so mods can show a talk bubble if they wish (Vermeulen) -d (Wazat, Kinn, Urre, romi) darkplaces WGL client: default WGL input back to GDI, the DirectInput driver is malfunctioning, losing key release messages, stuttering mouse input, and lacks mouse wheel support (Wazat, Kinn) +-d (ryan[sg]) darkplaces loader: halflife wad loading is unable to seek to lump table (ryan[sg], Elric) -f (Tomaz, sublim3) darkplaces protocol: fix cl_nodelta 1, it's halting updates after you move away from an area (Tomaz, sublim3) -f (VorteX) darkplaces protocol: add DP_EF_HIGHPRECISION to send float origins instead of shorts (VorteX) -f (yummyluv) darkplaces protocol: add buttons 9-16 (yummyluv) @@ -43,7 +44,6 @@ 0 darkplaces editlights: split rtlight drawshadows option into drawworldshadows and drawentityshadows options, this allows combinations like no world shadows (for speed) but still having entity shadows (Mitchell, romi) 0 darkplaces input: centerview command isn't doing anything until console is activated, it should begin the pitch drift immediately as in quake (Sajt) 0 darkplaces input: ignore first mouse move in windows fullscreen when coming back from an alt-tab (sublim3) -0 darkplaces loader: halflife wad loading is unable to seek to lump table (ryan[sg], Elric) 0 darkplaces loader: only load .lit if the file size matches lumpsize * 3 + 8, as a rough check that the lit is for the correct bsp file (Spike) 0 darkplaces loading: add hud_clearprecache and hud_precachepic commands to preload pics by name, these get reloaded by r_restart as well, mods can put a lot of these commands in their default.cfg to precache needed hud art (Tomaz) 0 darkplaces loading: check for out of bounds lump data ranges in maps (FrikaC)