Commit Graph

29 Commits

Author SHA1 Message Date
Michael Theall
4393593e48 Add readdir batching to sdmc 2016-04-05 17:36:09 -05:00
Michael Theall
818254c55e Add sdmc_getmtime 2016-01-22 16:40:28 -06:00
Michael Theall
07f0fe7e65 Fix use of RemoveDevice() 2016-01-18 19:34:12 -06:00
Michael Theall
3df00537cd proper EEXIST error for mkdir 2016-01-16 16:32:21 -06:00
Michael Theall
0b40e7aa2f Move sdmc_dir_t into 3ds/sdmc.h 2016-01-16 16:30:11 -06:00
Michael Theall
c5674b3126 Add sdmcWriteSafe 2016-01-12 16:22:30 -06:00
fincs
9410a6db2b sdmc_dev.c: make string buffers thread local 2015-12-07 11:44:36 +01:00
Michael Theall
c0f75ae42b Robustify UTF translation 2015-11-19 13:49:31 -06:00
Steven Smith
324fcff1dc Bring FS up to date. 2015-11-14 17:36:07 -08:00
fincs
2797540a3d Revise most services to follow these guidelines:
- Each service must have xyzInit/xyzExit (with that name)
- xyzInit/xyzExit use reference counting
- xyzExit returns void
- The utilities in <3ds/result.h> are used instead of manual error checking
- The intrinsics in <3ds/synchronization.h> are used instead of inline asm
- Other miscellaneous changes
  - APT now uses a lightweight lock instead of a mutex
  - Initial handle parameters in PTMU were killed
  - Explicit init'ion to 0 or NULL has been removed for global variables
    since they end up on .bss anyway
  - MIC hasn't been touched because it must be rewritten first
  - CFGNOR needs a slight touch before converting
  - SOC is still to be cleaned up
2015-11-07 01:25:31 +01:00
fincs
053c71ad08 Remove service handle parameter from FSUSER IPC wrappers 2015-09-06 17:54:36 +02:00
mtheall
4573212176 Fix handle leak in sdmc_stat. 2015-01-27 23:28:06 -06:00
mtheall
b7ec5341b9 Add UTF-8 <-> UTF-16 support. 2015-01-16 11:44:05 -06:00
Dave Murphy
c68afb5f31 check for directory in stat too and set st_mode appropriately 2014-12-30 20:39:49 +00:00
yellows8
c1d8df8b68 Implemented actual code for sdmc_stat(). 2014-12-30 01:04:55 -05:00
smea
dac642f613 Update sdmc_dev.c 2014-12-26 12:49:19 -08:00
Dave Murphy
78b94b4eea auto initialise commonly used services, prevent double initialisation 2014-12-25 23:27:36 +00:00
Dave Murphy
a58f2def09 set errno for file too big 2014-12-21 03:13:15 +00:00
Dave Murphy
60edc69d73 sdmc_open: implement O_EXCL and O_TRUNC 2014-12-15 23:23:04 +00:00
Dave Murphy
c76ea75ae2 stop building everything when any header changes 2014-12-13 16:36:54 +00:00
Dave Murphy
88bef35b8f set default device so relative paths work in 3dmoo 2014-12-08 23:21:46 +00:00
fincs
bacd6f09ca sdmc_dev.c: do not redefine __system_argc/argv 2014-12-04 11:23:40 +01:00
Dave Murphy
1bc0073bd3 implement chdir & relative path support 2014-12-04 00:29:35 +00:00
Dave Murphy
ea97e7a529 stop polluting 3ds headers with extra system headers 2014-11-28 13:13:34 +00:00
yellows8
bd9c33e139 Fixed broken path code in sdmc_dev.c. Disabled attributes code in sdmc_open() for now, since that was causing file truncation(even with read-only file opening). 2014-11-16 21:12:24 -05:00
mtheall
0d6365aa2f use ARCH_SDMC for archive id 2014-10-30 15:40:19 -05:00
mtheall
c8a3207c42 fix typo 2014-10-30 13:52:30 -05:00
mtheall
498bc24808 return offset in sdmc_seek 2014-10-30 13:49:00 -05:00
mtheall
a9d2f7b97f start sdmc devoptab 2014-10-30 13:34:13 -05:00