Commit Graph

202 Commits

Author SHA1 Message Date
Dave Murphy
9a61155c18 remove nitrofs from libfat 2008-12-03 21:39:19 +00:00
Michael Chisholm
aa0d8773da Removed superfluous debug messages 2008-12-01 23:57:00 +00:00
Dave Murphy
71b1b585b8 ifdef debug code 2008-12-01 18:52:22 +00:00
Michael Chisholm
198df1272d Reload partition boot sector when sector 0 is an MBR 2008-11-30 07:12:08 +00:00
Michael Chisholm
94c4eac0cb Read/write contigious clusters in one operation to improve speed. 2008-11-22 13:37:16 +00:00
Michael Wiedenbauer
c0c2a463f6 prepended __ to the io_x exports 2008-11-20 14:18:42 +00:00
Michael Chisholm
9501328dca Added disc.c -- wrapper for DISC_INTERFACEs. 2008-11-20 05:32:59 +00:00
Michael Chisholm
2cc2cc2e39 Moved disc interfaces to appropriate libraries (DLDI to libnds, SD/USB to libogc).
Changed read/write functions to use size_t and seek function to use off_t -- will help on 64 bit platforms.
Partitions no longer specified by fat1:/, fat2:/, etc.
Use "nice" device names. On GBA/NDS the default partition is still fat:/; however on Wii and GC sd:/, usb:/, etc. are used instead.
Added fsync and ftruncate functions.
Mount and unmount no longer startup/shutdown the device, this is the job of the host app.
Mount now accepts a partition start parameter.
Used standard types, eg uint32_t instead of u32.
Archive bit is set when closing/synchronizing a modified file.
Various minor bug fixes.
2008-11-20 05:22:28 +00:00
Dave Murphy
841c1a692c files moved to libogc 2008-11-14 16:47:24 +00:00
Michael Chisholm
03bed3a1bd Only set append position when file is opened for append, as suggested by rodries. Improves open speed for large files. 2008-09-12 11:18:09 +00:00
Michael Chisholm
d72dcb0384 Fixed unlink not freeing cluster chains 2008-09-11 08:54:23 +00:00
Michael Chisholm
bfb4d60d1f Don't read high 16 bits of start cluster from a directory entry on non-FAT32 partititions, in case it contains non-zero data 2008-09-08 08:28:17 +00:00
Michael Chisholm
783ea08837 Added CLUSTER_ROOT definition 2008-08-16 14:12:56 +00:00
Michael Chisholm
c01d5f3e69 Correct cluster given on FAT32 when .. entry is included in path to subdirectory.
Fixed creation of long filename entry for all-caps filenames longer than 8 characters.
2008-08-02 04:22:47 +00:00
Dave Murphy
e6b8be341d disable sdgecko on Wii 2008-05-25 14:52:04 +00:00
Dave Murphy
486efc2bc9 files added by http://sourceforge.net/tracker/?func=detail&atid=668553&aid=1970541&group_id=114505 2008-05-23 21:54:50 +00:00
Dave Murphy
8b9d437f76 add locks for threaded systems.
fix eof conditions
https://sourceforge.net/tracker/?func=detail&atid=668553&aid=1970541&group_id=114505
2008-05-23 19:37:46 +00:00
Dave Murphy
8843a36ea2 remove unneeded ldflags 2008-05-23 19:36:41 +00:00
Dave Murphy
cc1480bf9a calculate remaining space 2008-05-23 10:38:18 +00:00
Dave Murphy
a839587b4d correct initial path setting from argv 2008-05-23 10:37:33 +00:00
Dave Murphy
25b615836f simplified read/write position reset 2008-05-14 13:01:15 +00:00
Dave Murphy
ef3f19697c get time & date on Wii/cube too 2008-05-12 16:38:50 +00:00
Dave Murphy
ad1161c083 reset read/write position properly on first cluster allocation 2008-05-12 16:10:42 +00:00
Michael Chisholm
8d36ebe061 Modified WinterMute's seek then write fix for elegance, removed
resetPosition
2008-05-12 09:35:18 +00:00
Dave Murphy
02d3e47079 really add nitrofs support 2008-05-12 09:03:45 +00:00
Dave Murphy
a6dd89dbe4 Only reset file->currentPostion on first creation 2008-05-12 02:52:12 +00:00
Dave Murphy
46df48ba21 add libogc port and nitroFS support 2008-05-10 19:35:18 +00:00
Dave Murphy
5b9bfaecf0 commit bushing's endianess fixes 2008-05-01 10:02:19 +00:00
Dave Murphy
33af69e193 add libogc folder
update makefiles for easier building of separate targets
2008-05-01 09:57:23 +00:00
Dave Murphy
7311c4f757 remove separate cube & wii folders 2008-05-01 09:49:05 +00:00
Michael Chisholm
bef33572eb Fixed _FAT_cache_constructor to return NULL on error, not false
Fixed _FAT_cache_flush to return false on error. With thanks to xorloser
2008-05-01 09:31:34 +00:00
Dave Murphy
23a406ddd1 First pass at gamecube/wii support 2008-03-16 18:06:25 +00:00
Dave Murphy
82c3168c36 use <nds/ndstypes.h> 2008-02-12 16:14:39 +00:00
Dave Murphy
b34e817e2f remove lib folder creation from top level make.
fix generation of TOPDIR in subdirectories.
2007-12-21 09:30:15 +00:00
Michael Chisholm
64012781ef Fixed LFN creation with character codes > 0x7F 2007-11-16 10:49:52 +00:00
Michael Chisholm
62745e4b21 Fixed alias creation bugs 2007-11-04 09:52:39 +00:00
Michael Chisholm
634887aa0f A cluster is only allocated for a file when data is written, instead of when the file is opened
file_extend_r renamed to _FAT_file_extend_r
2007-11-04 09:51:31 +00:00
Michael Chisholm
28e71f2920 _FAT_fat_nextCluster now returns CLUSTER_FREE when input cluster is CLUSTER_FREE 2007-11-04 09:50:39 +00:00
Michael Chisholm
838cc907d1 Fix off-by-one error for months value 2007-11-04 09:50:02 +00:00
Michael Chisholm
9deb154adb Added unicode support 2007-11-01 06:00:30 +00:00
Michael Chisholm
ccb080a071 Fixed compare against (time_t)-1 2007-10-30 05:59:06 +00:00
Michael Chisholm
2f4af3f8c0 Uses standard POSIX time functions 2007-10-30 02:46:22 +00:00
Michael Chisholm
def250bd28 Use CLUSTER_ERROR when an error occurs with the FAT, not CLUSTER_FREE 2007-10-25 12:55:18 +00:00
Michael Chisholm
8c319ec76a Added statvfs functionality 2007-10-25 12:52:08 +00:00
Michael Chisholm
8cfa906c22 Use CLUSTER_ERROR when an error occurs with the FAT, not CLUSTER_FREE 2007-09-01 07:55:38 +00:00
Michael Chisholm
4a0c7c4046 Added space to list of illegal alias characters - fixes filename creation bug when filename contained a space 2007-04-22 07:34:18 +00:00
Michael Chisholm
c394419d72 Fixed seek to end of file when reading 2007-04-12 01:06:35 +00:00
Michael Chisholm
cdc8378826 Fixed device type identifier 2007-04-04 12:31:08 +00:00
Michael Chisholm
4191c6de84 Check long file names for buffer overflow 2007-03-14 10:51:45 +00:00
Michael Chisholm
be7f9f10fb Fixed seek to the end of a file bug 2007-02-25 09:51:47 +00:00