Merge pull request #1646 from mariohackandglitch/master

loader: fix fileOpen argument order
This commit is contained in:
TuxSH 2021-06-29 00:38:51 +01:00 committed by GitHub
commit 01661bb1e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ static u32 patchMemory(u8 *start, u32 size, const void *pattern, u32 patSize, s3
static Result fileOpen(IFile *file, FS_ArchiveID archiveId, const char *path, u32 flags) static Result fileOpen(IFile *file, FS_ArchiveID archiveId, const char *path, u32 flags)
{ {
return IFile_Open(file, archiveId, fsMakePath(PATH_ASCII, path), fsMakePath(PATH_EMPTY, ""), flags); return IFile_Open(file, archiveId, fsMakePath(PATH_EMPTY, ""), fsMakePath(PATH_ASCII, path), flags);
} }
static bool dirCheck(FS_ArchiveID archiveId, const char *path) static bool dirCheck(FS_ArchiveID archiveId, const char *path)