mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 02:44:15 +00:00
use /sdcard/i2pd at android
This commit is contained in:
parent
b9cbdb2dc4
commit
6264569ca0
3
FS.cpp
3
FS.cpp
@ -54,6 +54,9 @@ namespace fs {
|
|||||||
dataDir = (home != NULL && strlen(home) > 0) ? home : "";
|
dataDir = (home != NULL && strlen(home) > 0) ? home : "";
|
||||||
dataDir += "/Library/Application Support/" + appName;
|
dataDir += "/Library/Application Support/" + appName;
|
||||||
return;
|
return;
|
||||||
|
#elif defined(ANDROID)
|
||||||
|
dataDir = "/sdcard/" + appName; // TODO: might not work for some devices
|
||||||
|
return;
|
||||||
#else /* other unix */
|
#else /* other unix */
|
||||||
char *home = getenv("HOME");
|
char *home = getenv("HOME");
|
||||||
if (isService) {
|
if (isService) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user