mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 11:03:45 +01:00
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:
1 parent
bc0b5d42ab
commit
a831cab14c
56 files changed
+196
-23
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user