Remove unmotivated check preventing texture ini creation on mobile. (#15647)

* Remove unmotivated check preventing  texture ini creation on mobile.

Fixes #15644

* Show a "toast" message on platforms that don't support opening a text editor, when you try to create/open a texture ini file.

* Avoid the need to ifdef around calls to SystemToast

* UWP buildfix (and some warning fixes).

And possibly libretro fix

* Rename for a bit more consistency
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2022-07-10 22:34:44 +02:00
1 parent bc0b5d42ab
commit a831cab14c
56 files changed
+196 -23

No files matched your search

+9
View File
@@ -1021,6 +1021,15 @@ bool ReplacedTexture::Load(int level, void *out, int rowPitch) {
return true;
}
bool TextureReplacer::IniExists(const std::string &gameID) {
if (gameID.empty())
return false;
Path texturesDirectory = GetSysDirectory(DIRECTORY_TEXTURES) / gameID;
Path generatedFilename = texturesDirectory / INI_FILENAME;
return File::Exists(generatedFilename);
}
bool TextureReplacer::GenerateIni(const std::string &gameID, Path &generatedFilename) {
if (gameID.empty())
return false;