Skip to content

Commit

Permalink
Utility: port Directory::tmp() to Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Sep 11, 2016
1 parent 87a5295 commit e59c45e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Corrade/Utility/Directory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ std::string Directory::tmp() {
if(isSandboxed()) return join(home(), "tmp");
#endif

/* Android, you had to be special, right? */
#ifdef CORRADE_TARGET_ANDROID
return "/data/local/tmp";
#endif

/* Common Unix */
return "/tmp";

Expand Down

0 comments on commit e59c45e

Please sign in to comment.