]> git.tdb.fi Git - libs/core.git/blob - source/fs/android/dir_location.cpp
Have get_user_data_dir return a proper location on Android
[libs/core.git] / source / fs / android / dir_location.cpp
1 #include <msp/core/application.h>
2 #include <msp/core/mainthread.h>
3 #include "dir.h"
4
5 using namespace std;
6
7 namespace Msp {
8 namespace FS {
9
10 Path get_home_dir()
11 {
12         return "/sdcard";
13 }
14
15 Path get_user_data_dir(const string &)
16 {
17         Android::MainThread *thread = reinterpret_cast<Android::MainThread *>(Application::get_data());
18         return thread->get_internal_data_path();
19 }
20
21 } // namespace FS
22 } // namespace Msp