Commit Graph

38 Commits

Author SHA1 Message Date
Ryan C. Gordon a2bec46a6b Initial autoconf support. 2002-05-10 09:25:25 +00:00
Ryan C. Gordon 7ffd15fb42 Doesn't grab mutex in __PHYSFS_setError() if PHYSFS_init() hasn't been called. 2002-04-08 13:35:29 +00:00
Ryan C. Gordon bf00a81579 Updated. 2002-04-06 05:18:49 +00:00
Ryan C. Gordon d5a699ccd2 Error subsystem does basic initialization during PHYSFS_init(), now. 2002-04-04 17:58:02 +00:00
Ryan C. Gordon a366cfe1a2 Approved zeph's comments, fixed a few of my screwups. 2002-04-03 07:40:27 +00:00
Gregory S. Read 5d5f15ca9a -Made type cast changes that Ryan needs to approve.
-MSVC complained about 64-bit to 32-bit implicit conversions.
-Added Win32 specific #defines for 64-bit datatypes.
2002-04-03 04:17:54 +00:00
Ryan C. Gordon 21a2eda1b5 Fixed calculateUserDir() to prevent extra dir separator insertion in default case. 2002-04-02 13:39:44 +00:00
Ryan C. Gordon cccf065f68 Patched to compile on MacOS Classic, with CodeWarrior 6. 2002-04-01 18:48:24 +00:00
Ryan C. Gordon 39406cbacc First shot at thread-safety. 2002-03-30 16:44:09 +00:00
Ryan C. Gordon f2887cf047 Added typedefs and platform-specific i/o. 2002-03-24 19:47:33 +00:00
Ryan C. Gordon 419d5cd017 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit(). 2002-03-24 06:36:48 +00:00
Ryan C. Gordon 57a176068c const correctness fixes. 2002-03-16 03:53:46 +00:00
Ryan C. Gordon cd58c9e523 Reports trouble setting the write dir in PHYSFS_setSaneConfig(). 2002-03-15 14:53:23 +00:00
Ryan C. Gordon e444f9ed02 PHYSFS_setSaneConfig() fixes: set write dir correctly, and put it at start
of search path.
2001-09-26 03:08:57 +00:00
Ryan C. Gordon 1e6f2bc0d9 Changed PHYSFS_setSaneConfig()'s behaviour. API BREAKAGE. 2001-09-26 01:44:41 +00:00
Ryan C. Gordon c3a00ee94b Patches from David Hedbor to handle missing current working directories.
"The attached patch makes PhysFS handle the case when the current
   directory (as returned by getcwd()) has been deleted.
   Fix 1, platform/unix.c:
    Only retry getcwd if the error is ERANGE. Before it retried till the
    malloc failed in the case of the directory not existing.
  Fix 2: physfs.c:
    If __PHYSFS_platformCurrentDir() return's NULL, use the root as the
    base dir. Bad solution but the best I can think of (alternative :
    use /tmp or Windows TEMP dir?)."
2001-09-14 22:59:53 +00:00
Ryan C. Gordon ed2a43b2ea Patched to compile with an ancient version of CodeWarrior. 2001-09-02 04:55:25 +00:00
Ryan C. Gordon 709626633e Compiles and runs on Visual C. What an uphill climb THAT was. 2001-08-23 18:01:43 +00:00
Ryan C. Gordon 2ce179303b Removed #include <unistd.h>, since it isn't needed in this file, and
doesn't exist as far as Visual C is concerned.
2001-08-23 14:31:00 +00:00
Ryan C. Gordon 3be0550a6c Safety memset when creating error information for a new thread. 2001-08-01 10:18:56 +00:00
Ryan C. Gordon c83a82497c Cleaned up PHYSFS_openRead() a little. PHYSFS_addToSearchPath() now
returns successful for duplicates, but doesn't add them a second time.
2001-07-23 09:23:17 +00:00
Ryan C. Gordon 2ea6feeb2b Explicit check for negative positions in PHYSFS_seek(). 2001-07-23 07:15:21 +00:00
Ryan C. Gordon bf2508c6d6 Non-existant archives/directories report a more correct error, and a call
to PHYSFS_exists("") now always succeeds.
2001-07-23 04:46:42 +00:00
Ryan C. Gordon c7fe9ab439 Architecture adjustment for enumerating files with regards to whether
symlinks are permitted.
2001-07-16 17:36:28 +00:00
Ryan C. Gordon 7d90c12f74 Lots of bugfixes, enhancements, and corrections due to the work on
test_physfs exposing problems.
2001-07-16 14:36:02 +00:00
Ryan C. Gordon eea743579a Added PHYSFS_fileLength(). Bleh. 2001-07-09 04:15:35 +00:00
Ryan C. Gordon 096d57e6a8 Rewrote the file closing routines to not be so gay. Cleaned up the opening
routines, too. One less malloc and free needed for an open/close pair, which
makes things frighteningly more manageable. --ryan.
2001-07-09 01:45:13 +00:00
Ryan C. Gordon 2827a86e87 Bugfix for infinite loop/touching free()'d memory during PHYSFS_deinit(). 2001-07-09 00:51:46 +00:00
Ryan C. Gordon f97faa279e Initial debugging: dropped PhysicsFS routines into the Build engine,
replacing Ken's groupfile management. Not finished, but lots of initial
debugging is complete. More bugs, likely in OUR groupfile code, are waiting
to be fixed, but the KenBuild editor runs without crashing (er...but the
palette doesn't seem to be loading... :)  )

  --ryan.
2001-07-08 13:57:28 +00:00
Ryan C. Gordon 59185346dd More tweaks; GRP completely implemented. Everything builds clean. 2001-07-08 10:58:10 +00:00
Ryan C. Gordon ee508bb2e0 Archive implementation (Build Groupfiles), other tweaks. 2001-07-08 05:27:05 +00:00
Ryan C. Gordon 2622be385d Implementation compiles and links with no actual archive support. No test
case available at this moment.  :)
2001-07-08 03:25:12 +00:00
Ryan C. Gordon f053b90111 Base implementation is now complete. Now to fill in archive/platform drivers. 2001-07-07 09:05:19 +00:00
Ryan C. Gordon a197f30eef Tons of updates. Mostly implemented. Mostly compiling. 2001-07-07 03:52:43 +00:00
Ryan C. Gordon 2843a1979f Redesign of enumerateFiles code. More efficient and clean, less memory
hungry. Some tiny snafus, though, for future maintanence (*shrug*).
2001-07-06 21:29:37 +00:00
Ryan C. Gordon c97f88fc33 Progress toward complete implementation continues... 2001-07-06 08:47:23 +00:00
Ryan C. Gordon 8f3c87743f More work. Getting better. 2001-07-06 01:27:14 +00:00
Ryan C. Gordon 745aaae8b2 Initial add; not yet completely implemented. 2001-07-05 08:18:39 +00:00