summaryrefslogtreecommitdiff
path: root/src/qcommon/files.c
AgeCommit message (Collapse)Author
2017-03-09add a crappy hack to allow the game DLL/SO to be reloaded when running a ↵/dev/humancontroller
server in the client-server binary
2017-03-09fix changing of the WRONG cvar: fs_basepath instead of fs_basegame/dev/humancontroller
2017-02-07load libraries only, and load VMs additionally, from the path specified by ↵/dev/humancontroller
the fs_overpath cvar
2017-02-07stop embedding the architecture in the filenames of binaries and libraries; ↵/dev/humancontroller
change the library loader appropriately
2017-02-07fix crashing when an fs_*path is relative, but does not have an initial "." ↵/dev/humancontroller
component (eg., fs_homepath = "dir1/dir2"), or when a path contains multiple consecutive separators (eg. "dir//file")
2017-02-06use system libraries more properly; introduce a dependency on Minizip/dev/humancontroller
remove the USE_LOCAL_HEADERS option (it was broken anyway)
2016-04-09Merge branch 'master' into gppTim Angus
2016-04-07Make it compileTim Angus
2016-04-07Search for mods in steam path as well as home and base paths.SmileTheory
2016-04-07Better language, less tenseZachary J. Slater
2016-04-07more helpful error messageZachary J. Slater
Can’t find your pak0.pk3? Here’s where we tried looking.
2016-04-07Don't segfault in FS_CreatePath when there are no path seperatorsZack Middleton
2015-06-18let fs_basegame default to gpp/dev/humancontroller
2015-06-08merge some changes from the old "gpp" branch: edit version tags and the set ↵/dev/humancontroller
the default fs_game to "gpp"
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