mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-19 14:41:29 +02:00
Implement Platform::DefaultDdir for android
The default directory is acquired via getExternalFilesDir. Typical value: /storage/emulated/0/Android/data/uk.co.powdertoy.tpt/files, which seems to be user-accessible both on old and new Android. Probably. Hopefully. We'll see.
This commit is contained in:
@@ -10,7 +10,7 @@ import java.util.Base64;
|
||||
|
||||
public class PowderActivity extends SDLActivity
|
||||
{
|
||||
public static String getCertificateBundle()
|
||||
public String getCertificateBundle()
|
||||
{
|
||||
String allPems = "";
|
||||
try {
|
||||
@@ -39,4 +39,9 @@ public class PowderActivity extends SDLActivity
|
||||
}
|
||||
return allPems;
|
||||
}
|
||||
|
||||
public String getDefaultDdir()
|
||||
{
|
||||
return getExternalFilesDir(null).getAbsolutePath();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user