commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 12/14: runtime: android: need to use a usab


From: git
Subject: [Commit-gnuradio] [gnuradio] 12/14: runtime: android: need to use a usable, writable location for android apps, so use the tmp path that we set up to point to the app's home directory.
Date: Thu, 12 Mar 2015 19:38:14 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch android
in repository gnuradio.

commit 3f06a0197d7279fb564402b8707d05aa553db067
Author: Tom Rondeau <address@hidden>
Date:   Sun Jan 18 11:24:33 2015 -0500

    runtime: android: need to use a usable, writable location for android apps, 
so use the tmp path that we set up to point to the app's home directory.
---
 gnuradio-runtime/lib/prefs.cc | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnuradio-runtime/lib/prefs.cc b/gnuradio-runtime/lib/prefs.cc
index b7fcaad..ee9b403 100644
--- a/gnuradio-runtime/lib/prefs.cc
+++ b/gnuradio-runtime/lib/prefs.cc
@@ -59,7 +59,12 @@ namespace gr {
   {
     std::vector<std::string> fnames;
 
+#if ANDROID
+    fs::path dir = fs::path(gr::tmp_path());
+#else
     fs::path dir = prefsdir();
+#endif
+
     if(!fs::is_directory(dir))
       return fnames;
 
@@ -74,7 +79,12 @@ namespace gr {
     // Find if there is a ~/.gnuradio/config.conf file and add this to
     // the end of the file list to override any preferences in the
     // installed path config files.
+#if ANDROID
+    fs::path homedir = fs::path(gr::tmp_path());
+#else
     fs::path homedir = fs::path(gr::appdata_path());
+#endif
+
     homedir = homedir/".gnuradio/config.conf";
     if(fs::exists(homedir)) {
       fnames.push_back(homedir.string());



reply via email to

[Prev in Thread] Current Thread [Next in Thread]