Don't call OpenModeToAndroid in GBACore
`OpenModeToAndroid("r")` is conceptually wrong, since we're opening a
binary file. It should be either `OpenModeToAndroid("rb")` or just
`"r"`. But either way it evaluates to `"r"`, so this doesn't affect
behavior.
This commit is contained in:
1 parent
51e83dd7a1
commit
99531cf509
1 file changed
+1
-1
@@ -134,7 +134,7 @@ static VFile* OpenReadOnlyFile(const char* path)
|
|||||||
{
|
{
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
if (IsPathAndroidContent(path))
|
if (IsPathAndroidContent(path))
|
||||||
return VFileFromFD(OpenAndroidContent(path, OpenModeToAndroid("r")));
|
return VFileFromFD(OpenAndroidContent(path, "r"));
|
||||||
#endif
|
#endif
|
||||||
return VFileOpen(path, O_RDONLY);
|
return VFileOpen(path, O_RDONLY);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user