mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
Android: Add .nomedia files to system and textures.
Due it on all platforms when saving textures to encourage including .nomedia in texture packs.
This commit is contained in:
1 parent
a004196d43
commit
d1c5668612
2 files changed
+3
No files matched your search
@@ -58,6 +58,7 @@ void TextureReplacer::NotifyConfigChanged() {
|
||||
// If we're saving, auto-create the directory.
|
||||
if (g_Config.bSaveNewTextures && !File::Exists(basePath_ + NEW_TEXTURE_DIR)) {
|
||||
File::CreateFullPath(basePath_ + NEW_TEXTURE_DIR);
|
||||
File::CreateEmptyFile(basePath_ + NEW_TEXTURE_DIR + "/.nomedia");
|
||||
}
|
||||
|
||||
enabled_ = File::Exists(basePath_) && File::IsDirectory(basePath_);
|
||||
@@ -400,6 +401,7 @@ void TextureReplacer::NotifyTextureDecoded(const ReplacedTextureDecodeInfo &repl
|
||||
const std::string saveDirectory = basePath_ + NEW_TEXTURE_DIR + hashfile.substr(0, slash);
|
||||
if (!File::Exists(saveDirectory)) {
|
||||
File::CreateFullPath(saveDirectory);
|
||||
File::CreateEmptyFile(saveDirectory + "/.nomedia");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user