mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
asdf Move Android file listing parsing logic into app-android.cpp. Add utility for parsing/writing Android Content Storage URIs. Fix some bugs. Allow upwards navigation in file browser from directories downstream from tree URIs.
34 lines
717 B
C++
34 lines
717 B
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);
|
|
int Android_OpenContentUriFd(const std::string &uri);
|
|
std::string Android_GetContentUriParent(const std::string &uri); // Empty string means no parent
|
|
|
|
|
|
std::vector<File::FileInfo> Android_ListContentUri(const std::string &uri);
|
|
|
|
#endif
|