Permalink
Browse files

Merge pull request #7333 from weihuoya/gamecover-nomedia

Hide game cover in android gallery
  • Loading branch information...
degasus committed Aug 20, 2018
2 parents c3b0208 + eefef73 commit 3c354d9280ec94234f4cdcdfe4e9d91cf56517f3
Showing with 4 additions and 0 deletions.
  1. +1 −0 Source/Core/Common/CommonPaths.h
  2. +3 −0 Source/Core/UICommon/UICommon.cpp
@@ -22,6 +22,7 @@
#elif defined ANDROID
#define USERDATA_DIR "user"
#define DOLPHIN_DATA_DIR "/sdcard/dolphin-emu"
#define NOMEDIA_FILE ".nomedia"
#else
#define USERDATA_DIR "user"
#define DOLPHIN_DATA_DIR "dolphin-emu"
@@ -178,6 +178,9 @@ void CreateDirectories()
#ifndef ANDROID
File::CreateFullPath(File::GetUserPath(D_THEMES_IDX));
File::CreateFullPath(File::GetUserPath(D_STYLES_IDX));
#else
// Disable media scanning in directories with a .nomedia file
File::CreateEmptyFile(File::GetUserPath(D_COVERCACHE_IDX) + DIR_SEP NOMEDIA_FILE);
#endif
}

0 comments on commit 3c354d9

Please sign in to comment.