mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +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
@@ -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] = {};
|
||||
|
||||
|
||||
Reference in new issue
Block a user