Skip to content

Commit

Permalink
Remove don't remove extra error flags in FSOpenFileAsync as we end up…
Browse files Browse the repository at this point in the history
… in FSOpenFileExAsync anyway
  • Loading branch information
Maschell committed Aug 6, 2022
1 parent f420d5e commit 0301952
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/FSFileReplacements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/FSWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0301952

Please sign in to comment.