X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Fandroid%2Fdir_location.cpp;fp=source%2Ffs%2Fandroid%2Fdir_location.cpp;h=f9e0ea58d4760386ef009a954b868a41141611af;hb=e2b5cb6cd61bf8c6f56f624cc835233df92288da;hp=0000000000000000000000000000000000000000;hpb=edf916d784e503505ddac2acef6f3e9a72abb0d6;p=libs%2Fcore.git diff --git a/source/fs/android/dir_location.cpp b/source/fs/android/dir_location.cpp new file mode 100644 index 0000000..f9e0ea5 --- /dev/null +++ b/source/fs/android/dir_location.cpp @@ -0,0 +1,22 @@ +#include +#include +#include "dir.h" + +using namespace std; + +namespace Msp { +namespace FS { + +Path get_home_dir() +{ + return "/sdcard"; +} + +Path get_user_data_dir(const string &) +{ + Android::MainThread *thread = reinterpret_cast(Application::get_data()); + return thread->get_internal_data_path(); +} + +} // namespace FS +} // namespace Msp