Commit Graph

125 Commits

Author SHA1 Message Date
Gregory S. Read 3b798738f6 -Added init and deinit routines per physfs_internal.h changes.
-User directory is now returned correctly under WinNT based systems.
 Under Win9x/ME, a NULL is returned right now.
2002-03-24 19:42:21 +00:00
Ryan C. Gordon 419d5cd017 Added __PHYSFS_platformInit() and __PHYSFS_platformDeinit(). 2002-03-24 06:36:48 +00:00
Ryan C. Gordon e38b16ccb3 Patched to compile. 2002-03-21 03:22:04 +00:00
Ryan C. Gordon 4bb0fbe4e2 Minor logic fix. 2002-03-05 19:28:02 +00:00
Ryan C. Gordon cb2a15d302 Darwin support by Patrick Stein. 2002-03-05 19:16:38 +00:00
Ryan C. Gordon 734b665b8d Changed timeslice implementation to use something more portable (thanks to
Patrick Stein and his Darwin work for this one).
2002-03-05 01:35:54 +00:00
Ryan C. Gordon 525d015984 Took out a redundant memory failure check. 2001-11-14 23:46:41 +00:00
Ryan C. Gordon 934d107a4d Changes to user dir. 2001-10-09 15:41:33 +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 c97cbf3665 Rewrote __PHYSFS_platformRealPath() to be Cygwin AND Visual C friendly. I hope.
:).
2001-09-01 23:40:22 +00:00
Ryan C. Gordon 9effae336d Attempts to calculate basedir with GetModuleFileName() first, and made a
CygWin fix (_MAX_PATH becomes MAX_PATH).
2001-08-29 14:33:17 +00:00
Ryan C. Gordon 00267d4023 Fixed base directory determination. 2001-08-29 03:31:43 +00:00
Ryan C. Gordon 950e518270 __PHYSFS_platformGetUserDir() checks some win32 standard environment variables,
now. Added some headers so that most of this compiles with Cygwin, too.
2001-08-29 02:41:47 +00:00
Ryan C. Gordon 7aa0c252a9 More win32 updates. 2001-08-23 16:02:51 +00:00
Ryan C. Gordon 3deb942440 Whoops. Forgot to declare a variable. 2001-08-23 15:39:07 +00:00
Ryan C. Gordon f0c09894c8 Updates, corrections and enhancements to get this ported to win32. 2001-08-23 15:23:21 +00:00
Ryan C. Gordon 500f1a6687 Initial add; NOT complete. 2001-08-23 15:22:52 +00:00
Ryan C. Gordon e6bebfa32c Fixed a potential free()ing of a NULL pointer in
__PHYSFS_platformEnumerateFiles.
2001-08-23 15:06:15 +00:00
Ryan C. Gordon a02436d7c2 Added CD-ROM detection code. 2001-08-07 03:33:44 +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 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 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 9c4faeaa88 Moved from root source dir. 2001-07-07 08:24:47 +00:00