Commit Graph

125 Commits

Author SHA1 Message Date
Ryan C. Gordon 6fd6e1e2ea Updated. 2002-06-28 05:51:37 +00:00
Ryan C. Gordon c6e68d3dcc More build system dancing. 2002-06-28 05:40:52 +00:00
Ryan C. Gordon ffb3f0150a Readded. 2002-06-28 03:50:24 +00:00
Ryan C. Gordon 0a0b14f0e4 Patched a bug where doOpen() reported success when the file couldn't be
opened (doh!).
2002-06-23 09:17:59 +00:00
Ryan C. Gordon e2c5ea91e1 Removed for new build system. 2002-06-14 21:20:34 +00:00
Ryan C. Gordon 8e5e1b5c42 Removed in build system rewrite. 2002-06-14 21:11:58 +00:00
Ryan C. Gordon d75aa8a84f Lots of cleanups, fixes, and corrections. Should now work on all win32
platforms, and maybe even WinCE.
2002-06-10 06:33:15 +00:00
Ryan C. Gordon a1b30e8103 Fixed incorrect free() in Darwin CD detection code. 2002-06-08 20:59:29 +00:00
Ryan C. Gordon 1a665efb6a Enumerate files code: cleaned up memory leak, Doesn't throw away file entry
from FindFirstFile(), and handles paths more robustly.
2002-06-08 06:19:27 +00:00
Gregory S. Read 2b1142343f -Fixed file enumerator function (needed a wildcard '*' specification)
-CD enumeration only reports CDs that have media
-GetLastModified has been implemented.

-1.0 worthy except for a crash bug after enumerating files.
2002-06-07 02:33:45 +00:00
Ryan C. Gordon 81a9df44bc 64-bit _llseek() support for the future. 2002-06-06 06:09:19 +00:00
Ryan C. Gordon 2f15add38f Fixed __PHYSFS_platformSeek(). 2002-06-06 05:39:06 +00:00
Ryan C. Gordon 22412b925b Actual POSIX calls to replace ANSI stdio routines. 2002-06-02 03:48:56 +00:00
Ryan C. Gordon 5be59c1592 Added a bunch of explicit casts when using malloc(). 2002-05-27 19:10:45 +00:00
Ryan C. Gordon c1be8137b7 Implemented __PHYSFS_platformGetLastModTime(). 2002-05-25 22:15:39 +00:00
Ryan C. Gordon 2cc2477ebb Only attempt to build BeOS code on BeOS (don't even try building an empty
object file elsewhere).
2002-05-25 10:54:13 +00:00
Ryan C. Gordon 5386a5c6a2 Added PHYSFS_getLastModTime() API. (Thanks, John Hall!) 2002-05-25 09:41:14 +00:00
Ryan C. Gordon 3bfbd39f5c Updated. 2002-05-24 09:51:04 +00:00
Ryan C. Gordon 62e36b61f7 Initial add. 2002-05-24 09:46:43 +00:00
Ryan C. Gordon 2ea62ae1fb Split some of the unix.c code out to posix.c for BeOS to use. 2002-05-24 09:23:23 +00:00
Ryan C. Gordon e7920f0e74 Corrected to fix "make dist". 2002-05-24 03:39:05 +00:00
Ryan C. Gordon 769b2a5464 FIXME removal. 2002-05-21 11:29:00 +00:00
Ryan C. Gordon fe8c832ef5 Initial add. 2002-05-20 12:27:46 +00:00
Ryan C. Gordon a2c89d7ad2 Fixed OpenAppend to actually open for append. Used "wb+" instead of "ab". 2002-05-16 07:08:59 +00:00
Ryan C. Gordon a2bec46a6b Initial autoconf support. 2002-05-10 09:25:25 +00:00
Ryan C. Gordon bd450d0e68 Initial add. 2002-05-10 09:16:38 +00:00
Gregory S. Read d3dfd7f464 -Fixed a lot of the file functions error handling. Many were handling
success as failure, etc...
-File position is 0 based, EOF was being tested as though position was
 1 based.
-All file i/o and archive i/o functions tested okay with physfs_test app.
2002-05-08 00:02:35 +00:00
Gregory S. Read c06e3ca30b -Added optional DISABLE_NT_SUPPORT to not compile NT specific code
-Not NT systems set C:\ as the profile directory.  This should be changed to
 the basedir most likely...
-Defined INVALID_SET_FILE_POINTER for systems that don't have the latest
 platform SDK.  According to MSDN doc, this should be okay.
2002-05-06 03:26:10 +00:00
Ryan C. Gordon 228fbf096e More cleanups. 2002-04-13 00:56:12 +00:00
Ryan C. Gordon bed1042f88 Removed unused copyEnvironmentVariable function. 2002-04-12 23:51:47 +00:00
Ryan C. Gordon e788d15811 Fixed an endline issue. 2002-04-12 23:48:31 +00:00
Ryan C. Gordon 748cbac1c0 Patches for correctness and cleaner win32 support. 2002-04-12 05:53:12 +00:00
Ryan C. Gordon cd7021ba43 Darwin patches. 2002-04-06 23:49:17 +00:00
Ryan C. Gordon 566b6229c9 Darwin fixes. 2002-04-06 21:05:14 +00:00
Ryan C. Gordon f56737b579 Fixed __PHYSFS_platformRealPath(), and changed userdir behaviour. We're now feature-complete on the Mac, as far as I can tell. 2002-04-06 05:10:06 +00:00
Ryan C. Gordon c0b501934a Now handles Finder aliases as if they were symlinks. 2002-04-06 02:00:00 +00:00
Ryan C. Gordon b0637e0182 Mostly implemented (fully implemented if you don't want aliases to work like symlinks). 2002-04-05 09:04:34 +00:00
Ryan C. Gordon 42a386c247 Added some malloc() failure checks in CD-ROM detection code. 2002-04-05 08:45:08 +00:00
Ryan C. Gordon 148a933399 Fixed isDirectory and enumarateFiles (had wrong param in PBGetCatInfoSync()). 2002-04-04 19:35:59 +00:00
Ryan C. Gordon 992321a07e More work. More to go. 2002-04-04 17:56:20 +00:00
Ryan C. Gordon 7fd98219ca Implemented platformTimeslice, platformGetCurrentDir, and platformCvtToDependent. 2002-04-03 07:38:10 +00:00
Gregory S. Read fc5f8553cf -Implemented PHYSFS file routines
-Implemented PHYSFS thread routines
-Compiles on MSVC, not thoroughly tested.
2002-04-03 04:15:24 +00:00
Ryan C. Gordon 6519a249ff Username is now accurately reported, which means that the default user dir works more correctly. 2002-04-02 14:33:08 +00:00
Ryan C. Gordon af1452aa64 Initial add. Not nearly complete, but enough to get through PHYSFS_init(). 2002-04-02 13:43:29 +00:00
Ryan C. Gordon 0ba6cd5259 Added warning about potential infinite recursion between setError and grabMutex. 2002-04-02 13:41:11 +00:00
Ryan C. Gordon c6a778d977 Initial add. 2002-04-01 18:50:56 +00:00
Ryan C. Gordon 39406cbacc First shot at thread-safety. 2002-03-30 16:44:09 +00:00
Ryan C. Gordon f6b15061c8 Abstracted file deletion, so we don't rely on C library for it anymore. 2002-03-25 05:02:12 +00:00
Ryan C. Gordon dfe65649df Quick fix. 2002-03-25 04:02:27 +00:00
Ryan C. Gordon f2887cf047 Added typedefs and platform-specific i/o. 2002-03-24 19:47:33 +00:00
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