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

+8
View File
@@ -334,6 +334,8 @@ bool System_GetPropertyBool(SystemProperty prop) {
return true;
case SYSPROP_HAS_KEYBOARD:
return true;
case SYSPROP_SUPPORTS_OPEN_FILE_IN_EDITOR:
return true; // FileUtil.cpp: OpenFileInEditor
default:
return false;
}
@@ -428,6 +430,12 @@ void System_InputBoxGetString(const std::string &title, const std::string &defau
});
}
void System_Toast(const char *text) {
// Not-very-good implementation. Will normally not be used on Windows anyway.
std::wstring str = ConvertUTF8ToWString(text);
MessageBox(0, str.c_str(), L"Toast!", MB_ICONINFORMATION);
}
static std::string GetDefaultLangRegion() {
wchar_t lcLangName[256] = {};