summaryrefslogtreecommitdiff
path: root/src/qcommon/files.c
AgeCommit message (Collapse)Author
2016-04-07Don't segfault in FS_CreatePath when there are no path seperatorsZack Middleton
2014-06-17Fix FS_FOpenFileReadDir non-zero file handle when file not found in pk3Zack Middleton
If a pk3 search path is passed to FS_FOpenFileReadDir, a non-zero file handle is returned if file is not found. This causes incorrect behavior in FS_ReadFileDir (when a pk3 search path is passed in) which only checks file handle, not length, for seeing if file exists. I don't know of any issues in ioq3 caused by this.
2014-06-17Support FS_SEEK_END and negative offset for zipped files in FS_SeekZack Middleton
Use FS_SEEK_END in sound code instead of working around it. If FS_SEEK_SET and going to current position, just return.
2014-06-17Remove unused variable baseOffset from fsh[]Zack Middleton
2014-06-17Fix VM FOpenFile( FS_READ ) files seeking twice in FS_SeekZack Middleton
2013-05-31fix some OOB enumerator usages/dev/humancontroller
(should be no-op with usual compiler workings)
2013-05-31drop some useless return statements/dev/humancontroller
2013-05-03Rename FS_CheckFilenameIsNotImmutable to ..IsMutableHarley Laue
2013-05-03Rename FS_CheckFilenameIsNotExecutable to ..NotImmutableZack Middleton
2013-05-03Don't allow modifying qvms or pk3sZack Middleton
Exception for allowing pk3s to be downloaded.
2013-05-03Fix referencing pk3 with only qagame QVMZack Middleton
2013-05-03Add fallback for __func__ (ioq3 isn't compiled as c99 by default)Zack Middleton
Using Debian gcc version 4.7.2 and clang 3.0-6.1 anyway.
2013-03-27Fix some of the things clang --analyze flaggedTim Angus
2013-03-19Use PATH_SEP for a debug message in FS_FOpenFileReadDirEnsiform
2013-02-16Update copyright noticesTim Angus
2013-02-165717 - Gamecode can open file "" for readingZack Middleton
2013-02-16Don't add pk3dirs if connecting to a pure serverZack Middleton
Only .cfg etc would be read from pk3dirs, but they should be treated like pk3s that are not on the pure list.
2013-02-16Change pk3dir README / comments to fit in betterZack Middleton
2013-02-165289 - Support for .pk3dirAndrew Browne
2013-01-13Fix screwed up whitespace in files.cTim Angus
Apologies to anyone merging this :(
2013-01-13Fix FS_FOpenFileRead corner caseTim Angus
FS_FOpenFileRead is a fairly mental function that changes its return behaviour depending on whether or not file is NULL or not. It turns out in the case where file is NULL, we were returning the wrong value when the file didn't exist.
2013-01-12Fix some "> MAX_*" to be ">= MAX_*".Zack Middleton
2013-01-12Fix restoring fs_game when default.cfg is missing.Zack Middleton
2013-01-12Revert pk3dir patch because some users report the code gets stuck in an ↵Thilo Schulz
infinite loop in the new code
2013-01-12Support for .pk3dir (#5298) - Patch by Andrew (dersaidin@gmail.com)Thilo Schulz
2013-01-12REFACTOR [reletive -> relative]Zack Middleton
From /dev/humancontroller.
2013-01-12#5462 - do not require clients to have a matching qagame.qvm (adapted from ↵Zack Middleton
OpenArena)
2013-01-12* (bug #5283) Changes to the Makefile to make building standalone games ↵Tim Angus
easier (JBravo)
2013-01-10Allow VM_Restart to load unpure qagame.qvm so that local server won't crash ↵Thilo Schulz
after map_restart if server operator has qagame.qvm residing outside pak file (#5196) Thanks to "rg3" for providing a shell account
2013-01-10Use correct variable for getting buffer length, reported by Ensiform.Zack Middleton
2013-01-10Use platform's path separator in FS_Path_f (for consistent output on ↵Zack Middleton
Windows), reported by Ensiform.
2013-01-10Fix auto game-restart when disconnecting from a server that explicitly set ↵Thilo Schulz
fs_game to "baseq3" instead of ""
2013-01-10Don't do game_restart if game directory changed from "" to "baseq3" or ↵Thilo Schulz
"baseq3" to ""
2013-01-10Fix pak order when reconnecting to a server. When /connect to the same ↵Thilo Schulz
server is issued while already connected, an initial call to CL_Disconnect will remove all pak file references and reset the pak order. Reordering only occurs through FS_Restart, which in turn is called when checksum feed changes. Because we reconnect to the same server, checksum feed never changes and pak file order is not restored to server order again. With certain pak file constellations between client/server, this may result in an inability to load files from paks which are not correctly detected as referenced paks.
2013-01-10Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes ↵Thilo Schulz
unused-but-set gcc warnings
2013-01-10Fix extension name comparison for DLL filesThilo Schulz
2013-01-10- Automatically reset fs_game to "" if it was supplied by the user and is ↵Thilo Schulz
equal to com_basegame - Fix problem where users could change values of CVAR_INIT variables after the call to Cvar_Get() via Com_StartupVariable() - Move sound shutdown after client shutdown so VMs don't hold invalid sound handles in memory
2013-01-10- Improve game_restart: * differing screen resolutions and network settings ↵Thilo Schulz
are now honoured when changing fs_game * Fix hunk memory leak on game_restart * Move cls.state and cls.servername to clc so connection state is fully preserved over game_restart * Revert back to previous fs_game after disconnecting from a server that triggered a game_restart * Fix error dialog popping up after every game_restart if an error happened previously (reported by Ensiform) - Fixed that not all commands added by CL_Init() would be removed by CL_Shutdown()
2013-01-10- Don't try to load QVM/DLL files on pure servers - Fallback after failed ↵Thilo Schulz
DLL load will be VMI_COMPILED, not INTERPRETED
2013-01-10- Small change to search path order - local files not in .pk3s take ↵Thilo Schulz
precedence over files in pk3s. Should make life easier for modders/mappers wanting to override textures that are already contained in some older pk3 - Make VM loading more robust, change loading order: when vm_* == 0 first try loading DLL, then QVM in *each* search directory/path - Fix FS_FileForHandle that would return a FILE pointer to invalid file handle 0
2013-01-09Fix newlines in Com_Error, patch by Zack Middleton (#5023)Thilo Schulz
2013-01-09- Remove Q_strrchr(), replace with standard, portable strrchr() - Add ↵Thilo Schulz
strrchr() to bg_lib.c, patch by DevHC
2013-01-09Remove newlines from Com_Error message format strings, patch by DevHCThilo Schulz
2013-01-03* Fix bad merge (DevHC)Tim Angus
2013-01-03* Merge ioq3-r1946Tim Angus
2013-01-03* Fix a couple of whitespace inconsistencies in fs_which that I noticed ↵Christopher Schwarz
while making the patch for upstream
2013-01-03* Three minor cleanups (/dev/humancontroller)Christopher Schwarz
- Properly initialize cvartable entry for g_teamforcebalance - Properly remove the "which" command on shutdown - Clear all SS_ flags on stopping spectating instead of just wallwalk so free spectators don't get stuck with slowblob or whatever
2013-01-03* Update copyright noticesTim Angus
2013-01-03* Merge ioq3-r1752Tim Angus
2013-01-03* Merge ioq3-r1708Tim Angus