mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-24 23:32:50 +00:00
[android] set datadir path from system environment
This commit is contained in:
1 parent
f6199c6c17
commit
16a14c2b76
6 files changed
+50
-7
No files matched your search
@@ -65,6 +65,8 @@ namespace android
|
||||
}
|
||||
}
|
||||
*/
|
||||
std::string dataDir = "";
|
||||
|
||||
DaemonAndroidImpl::DaemonAndroidImpl ()
|
||||
//:
|
||||
/*mutex(nullptr), */
|
||||
@@ -85,7 +87,7 @@ namespace android
|
||||
//m_IsRunning=false;
|
||||
|
||||
// make sure assets are ready before proceed
|
||||
i2p::fs::DetectDataDir("", false);
|
||||
i2p::fs::DetectDataDir(dataDir, false);
|
||||
int numAttempts = 0;
|
||||
do
|
||||
{
|
||||
@@ -203,5 +205,10 @@ namespace android
|
||||
{
|
||||
daemon.stop();
|
||||
}
|
||||
|
||||
void SetDataDir(std::string jdataDir)
|
||||
{
|
||||
dataDir = jdataDir;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user