Android: Add content provider support to File::OpenFStream

This commit is contained in:
JosJuice
2020-11-04 20:59:39 +01:00
parent 64afe97491
commit 99ffee9a0a
3 changed files with 38 additions and 2 deletions

View File

@ -4,6 +4,7 @@
#pragma once
#include <ios>
#include <string>
#include <jni.h>
@ -17,6 +18,7 @@ bool IsPathAndroidContent(const std::string& uri);
// Turns a C/C++ style mode (e.g. "rb") into one which can be used with OpenAndroidContent.
std::string OpenModeToAndroid(std::string mode);
std::string OpenModeToAndroid(std::ios_base::openmode mode);
// Opens a given file and returns a file descriptor.
int OpenAndroidContent(const std::string& uri, const std::string& mode);