]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/android/mainthread.h
Have get_user_data_dir return a proper location on Android
[libs/core.git] / source / core / android / mainthread.h
index 68da6c4bc9133de65366f1a9ebe2bf72518e804b..4bac952bc149bd839b1815be03981d6ff130baea 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <android/native_activity.h>
 #include <sigc++/signal.h>
+#include <msp/fs/path.h>
 #include "mutex.h"
 #include "thread.h"
 
@@ -20,6 +21,8 @@ public:
 
 private:
        ANativeActivity *activity;
+       AAssetManager *asset_manager;
+       FS::Path int_data_path;
        bool starting_up;
        Mutex startup_mutex;
 
@@ -31,6 +34,9 @@ public:
        void wait_for_app_created();
        void resume_startup();
 
+       AAssetManager *get_asset_manager() const { return asset_manager; }
+       const FS::Path &get_internal_data_path() const { return int_data_path; }
+
 private:
        virtual void main();