Commit Graph

46 Commits

Author SHA1 Message Date
Maschell 9d0dbda1db Bump version to 0.2.6 2024-04-24 18:38:31 +02:00
Maschell 71406e2044 Add support for FS_LAYER_TYPE_SAVE_REPLACE_IGNORE_VOL_SAVE_COMMON 2024-04-24 18:38:31 +02:00
Callum Parsey 0df67fc7d9 Support "wb" mode for opening files
Hachihachi (the Nintendo DS emulator used in Virtual Console) crashes
when its save data is redirected to the SD card. It tries to open the
save-state files in "wb" mode which is currently rejected by the
ContentRedirectionModule. This causes the emulator's `SAVEOpenFile()`
call to fail, and the emulator immediately panics.

I am operating under the assumption that the Wii U's I/O system
doesn't differentiate between text and binary modes, like most other
operating systems. This is evidenced by the fact that the module
already supports "rb" mode and treats it in the same way as "r".
2023-11-17 11:15:25 +01:00
Maschell f4f50748d7 Remove romfs usage 2023-11-17 11:15:05 +01:00
Maschell ef29402e54 Bump version 2023-07-19 19:22:17 +02:00
Maschell 9e7299b65a Add missing imports 2023-07-14 20:41:40 +02:00
Maschell 96e8ddf97e Fix compiling with latest wut 2023-04-17 14:19:49 +02:00
Maschell 9fc60b3189 Bump version to 0.2.4 2023-01-10 18:15:59 +01:00
Maschell 488df227eb Use the latest libfunctionpatcher version 2023-01-07 10:38:40 +01:00
Maschell 8a1c0bdb80 Update Dockerfile to use the latest WUMS version, add dependency to FunctionPatcherModule 2023-01-07 10:26:17 +01:00
Maschell 4300168ea4 Update version string 2022-10-11 15:12:28 +02:00
Maschell eb0ff82425 Fix CRRemoveFSLayer return value 2022-10-11 14:44:10 +02:00
Maschell f5266db613 Add support for /vol/aoc redirection 2022-10-10 20:11:57 +02:00
Maschell 8811d7ae0a Improve and fix logging 2022-10-10 20:11:57 +02:00
Maschell ecd3cc03b2 Add missing FSAInit() call to fix directory merge with parents 2022-10-10 20:11:57 +02:00
Maschell e46cf2c765 Update version to v0.2.2 2022-10-09 15:45:43 +02:00
Maschell 89c7fc26d8 Prevent calling OSCancelThread for ContentRedirection IO Threads 2022-10-04 18:49:23 +02:00
Maschell f06f8ecc11 Bump the version 2022-09-19 22:21:40 +02:00
Maschell ba76c15d1e Log the module version on each application start 2022-09-19 13:19:04 +02:00
Maschell 857461b735 Rewrite of almost everything to fix crashes and lags 2022-09-17 22:38:25 +02:00
Maschell 3be38d6ea9 Add default error value for FSMakeDirWrapper 2022-09-05 20:24:43 +02:00
Maschell f7358bc380 Fix FSOpenFileWrapper result 2022-09-05 20:24:43 +02:00
Maschell bfa30678a0 Implement mkdir 2022-09-05 20:24:43 +02:00
Maschell 34d9fbeb2f Update CRGetVersion 2022-09-04 18:44:06 +02:00
Maschell cf51d1f724 Implement support for redirecting FSA function 2022-08-09 16:14:09 +02:00
Maschell 78ccbd0369 Improve setting the CWD for client, at basic error handling 2022-08-09 16:14:09 +02:00
Maschell 031ad15133 Fallback to "/" when no CWD for a given client was found 2022-08-09 16:14:09 +02:00
Maschell db108068e4 Hook into FSAWriteFileWithPos to log usage, improve existing logging. 2022-08-09 16:14:09 +02:00
Maschell 61381fbb65 Rename void setWorkingDir -> setWorkingDirForFSClient and getFullPathForClient -> getFullPathForFSClient 2022-08-09 16:14:09 +02:00
Maschell fca2193e40 Fix readdir wrapper 2022-08-08 18:10:19 +02:00
Maschell eddbc7400e Fill FSStat with more information 2022-08-08 10:15:27 +02:00
Maschell ce9ebde9ce Minor code cleanup 2022-08-08 10:15:27 +02:00
Maschell 78ca44dbf8 Fix logging the file size on stats wrapper 2022-08-08 10:15:27 +02:00
Maschell aa58f1745f Return FSError instead of FSStatus in FSWrapper 2022-08-08 10:15:27 +02:00
Maschell 030195238f Remove don't remove extra error flags in FSOpenFileAsync as we end up in FSOpenFileExAsync anyway 2022-08-06 22:47:11 +02:00
Maschell f420d5edad Add support for FSOpenFileEx(Async) 2022-08-06 22:47:11 +02:00
Maschell 487d1589f5 Add missing const to paths in function replacements 2022-08-06 22:47:11 +02:00
Maschell 72861fcd7f Update Dockerfile to use latest wut version 2022-07-25 13:12:10 -07:00
Maschell f3f6fae798 Use the latest libfunctionpatcher 2022-05-08 20:37:13 +02:00
Maschell 8043922311 Use shared_ptr/unique_ptr instead of raw ptr 2022-04-29 15:08:53 +02:00
Maschell 79755b6bb9 Formatting 2022-04-29 13:15:47 +02:00
Maschell ab7fcb156e Improve logging by adding module name to logs 2022-04-29 13:15:47 +02:00
Maschell 9fb780cac1 Remove unused parameter from logging 2022-04-29 13:15:47 +02:00
Maschell 30bf793fa0 Remove OSSetExceptionCallbackEx hook 2022-04-29 13:15:47 +02:00
Maschell 757e4764cb Improve logging and add logging section to the README 2022-04-22 22:02:00 +02:00
Maschell 7c9c0348fe first commit 2022-04-14 22:41:41 +02:00