mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Show a tiny indicator in the top left of the screen when the game is saving or loading.
This commit is contained in:
1 parent
028392233c
commit
f410b7e6ea
8 files changed
+65
-24
No files matched your search
+10
-1
@@ -69,7 +69,7 @@ void OnScreenDisplay::ClickEntry(size_t index, double now) {
|
||||
}
|
||||
|
||||
void OnScreenDisplay::Show(OSDType type, std::string_view text, std::string_view text2, std::string_view icon, float duration_s, const char *id) {
|
||||
if (text.empty()) {
|
||||
if (text.empty() && type != OSDType::STATUS_ICON) {
|
||||
// The user hacked the translation files to get rid of the message. Let's reward the dedication
|
||||
// by skipping it entirely.
|
||||
return;
|
||||
@@ -335,3 +335,12 @@ void OnScreenDisplay::SetClickCallback(const char *id, void (*callback)(bool, vo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void OnScreenDisplay::SetFlags(const char *id, OSDMessageFlags flags) {
|
||||
for (auto &ent : entries_) {
|
||||
// protect against dupes.
|
||||
if (ent.id == id) {
|
||||
ent.flags = flags;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user