]> git.tdb.fi Git - libs/core.git/blob - source/fs/android/dir_location.cpp
Fix references to deprecated functions
[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         return get_user_data_dir();
18 }
19
20 Path get_user_data_dir()
21 {
22         Android::MainThread *thread = reinterpret_cast<Android::MainThread *>(Application::get_data());
23         return thread->get_internal_data_path();
24 }
25
26 } // namespace FS
27 } // namespace Msp