mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-06 21:47:44 +00:00
Android: Minor cleanup.
This commit is contained in:
parent
b2fba2f834
commit
57fda69e50
@ -40,8 +40,6 @@ void System_SendMessage(const char *command, const char *parameter);
|
|||||||
PermissionStatus System_GetPermissionStatus(SystemPermission permission);
|
PermissionStatus System_GetPermissionStatus(SystemPermission permission);
|
||||||
void System_AskForPermission(SystemPermission permission);
|
void System_AskForPermission(SystemPermission permission);
|
||||||
|
|
||||||
std::vector<std::string> System_GetExternalStorageDirs();
|
|
||||||
|
|
||||||
// This will get muddy with multi-screen support :/ But this will always be the type of the main device.
|
// This will get muddy with multi-screen support :/ But this will always be the type of the main device.
|
||||||
enum SystemDeviceType {
|
enum SystemDeviceType {
|
||||||
DEVICE_TYPE_MOBILE = 0, // phones and pads
|
DEVICE_TYPE_MOBILE = 0, // phones and pads
|
||||||
|
@ -579,15 +579,15 @@ extern "C" void Java_org_ppsspp_ppsspp_NativeApp_init
|
|||||||
|
|
||||||
EARLY_LOG("NativeApp.init(): device name: '%s'", systemName.c_str());
|
EARLY_LOG("NativeApp.init(): device name: '%s'", systemName.c_str());
|
||||||
|
|
||||||
std::string externalStorageDir = GetJavaString(env, jexternalStorageDir);
|
std::string externalStorageDir = GetJavaString(env, jexternalStorageDir);
|
||||||
std::string additionalStorageDirsString = GetJavaString(env, jadditionalStorageDirs);
|
std::string additionalStorageDirsString = GetJavaString(env, jadditionalStorageDirs);
|
||||||
|
|
||||||
if (!additionalStorageDirsString.empty()) {
|
if (!additionalStorageDirsString.empty()) {
|
||||||
SplitString(additionalStorageDirsString, ':', g_additionalStorageDirs);
|
SplitString(additionalStorageDirsString, ':', g_additionalStorageDirs);
|
||||||
for (auto &str : g_additionalStorageDirs) {
|
for (auto &str : g_additionalStorageDirs) {
|
||||||
EARLY_LOG("Additional storage: %s", str.c_str());
|
EARLY_LOG("Additional storage: %s", str.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string user_data_path = GetJavaString(env, jdataDir);
|
std::string user_data_path = GetJavaString(env, jdataDir);
|
||||||
if (user_data_path.size() > 0)
|
if (user_data_path.size() > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user