mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
Merge pull request #7333 from weihuoya/gamecover-nomedia
Hide game cover in android gallery
This commit is contained in:
commit
3c354d9280
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue