mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "ppsspp_config.h"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Common/LogManager.h"
|
|
#include "Common/File/DirListing.h"
|
|
|
|
#if PPSSPP_PLATFORM(ANDROID)
|
|
|
|
#include <jni.h>
|
|
|
|
jclass findClass(const char* name);
|
|
JNIEnv* getEnv();
|
|
|
|
class AndroidLogger : public LogListener {
|
|
public:
|
|
void Log(const LogMessage &message) override;
|
|
};
|
|
|
|
extern std::string g_extFilesDir;
|
|
|
|
// Called from PathBrowser for example.
|
|
|
|
bool Android_IsContentUri(const std::string &uri);
|
|
|
|
// To emphasize that Android storage mode strings are different, let's just use
|
|
// an enum.
|
|
enum class Android_OpenContentUriMode {
|
|
READ = 0, // "r"
|
|
READ_WRITE = 1, // "rw"
|
|
READ_WRITE_TRUNCATE = 2, // "rwt"
|
|
};
|
|
|
|
int Android_OpenContentUriFd(const std::string &uri, const Android_OpenContentUriMode mode);
|
|
bool Android_CreateDirectory(const std::string &parentTreeUri, const std::string &dirName);
|
|
bool Android_CreateFile(const std::string &parentTreeUri, const std::string &fileName);
|
|
bool Android_RemoveFile(const std::string &fileUri);
|
|
bool Android_GetFileInfo(const std::string &fileUri, File::FileInfo *info);
|
|
|
|
std::vector<File::FileInfo> Android_ListContentUri(const std::string &uri);
|
|
|
|
#endif
|