mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-12-06 19:26:23 +01:00
use /sdcard/i2pd at android
This commit is contained in:
@@ -54,6 +54,9 @@ namespace fs {
|
||||
dataDir = (home != NULL && strlen(home) > 0) ? home : "";
|
||||
dataDir += "/Library/Application Support/" + appName;
|
||||
return;
|
||||
#elif defined(ANDROID)
|
||||
dataDir = "/sdcard/" + appName; // TODO: might not work for some devices
|
||||
return;
|
||||
#else /* other unix */
|
||||
char *home = getenv("HOME");
|
||||
if (isService) {
|
||||
|
||||
Reference in New Issue
Block a user