mirror of
https://github.com/wiiu-env/ContentRedirectionModule.git
synced 2024-11-17 00:49:23 +01:00
Remove don't remove extra error flags in FSOpenFileAsync as we end up in FSOpenFileExAsync anyway
This commit is contained in:
parent
009f8deada
commit
76b7822e56
@ -4,7 +4,6 @@
|
||||
#include <coreinit/dynload.h>
|
||||
#include <cstdarg>
|
||||
|
||||
|
||||
DECL_FUNCTION(FSStatus, FSOpenFileEx, FSClient *client, FSCmdBlock *block, const char *path, const char *mode, FSMode createMode, FSOpenFileFlags openFlag, uint32_t preallocSize, FSFileHandle *handle, FSErrorFlag errorMask) {
|
||||
DEBUG_FUNCTION_LINE_VERBOSE("%s", path);
|
||||
if (isForceRealFunction(errorMask)) {
|
||||
@ -59,7 +58,7 @@ DECL_FUNCTION(FSStatus, FSOpenFile, FSClient *client, FSCmdBlock *block, char *p
|
||||
DECL_FUNCTION(FSStatus, FSOpenFileAsync, FSClient *client, FSCmdBlock *block, const char *path, const char *mode, FSFileHandle *handle, FSErrorFlag errorMask, FSAsyncData *asyncData) {
|
||||
DEBUG_FUNCTION_LINE_VERBOSE("%s", path);
|
||||
if (isForceRealFunction(errorMask)) {
|
||||
return real_FSOpenFileAsync(client, block, path, mode, handle, getRealErrorFlag(errorMask), asyncData);
|
||||
return real_FSOpenFileAsync(client, block, path, mode, handle, errorMask, asyncData);
|
||||
}
|
||||
return doForLayer(
|
||||
client,
|
||||
|
@ -192,7 +192,6 @@ FSStatus FSWrapper::FSOpenFileWrapper(const char *path, const char *mode, FSFile
|
||||
return FS_STATUS_ACCESS_ERROR;
|
||||
}
|
||||
|
||||
|
||||
DEBUG_FUNCTION_LINE_VERBOSE("[%s] Open %s (as %s) mode %s,", getName().c_str(), path, newPath.c_str(), mode);
|
||||
int32_t fd = open(newPath.c_str(), _mode);
|
||||
if (fd >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user