diff --git a/Common/System/System.h b/Common/System/System.h index 14001fefa7..fd1ca445a5 100644 --- a/Common/System/System.h +++ b/Common/System/System.h @@ -117,6 +117,7 @@ enum SystemProperty { SYSPROP_BOARDNAME, SYSPROP_CLIPBOARD_TEXT, SYSPROP_GPUDRIVER_VERSION, + SYSPROP_BUILD_VERSION, // Separate SD cards or similar. // Need hacky solutions to get at this. diff --git a/Common/UI/PopupScreens.h b/Common/UI/PopupScreens.h index fa2f2e00d9..8fdfb68e1f 100644 --- a/Common/UI/PopupScreens.h +++ b/Common/UI/PopupScreens.h @@ -55,6 +55,9 @@ class MessagePopupScreen : public PopupScreen { public: MessagePopupScreen(std::string title, std::string message, std::string button1, std::string button2, std::function callback) : PopupScreen(title, button1, button2), message_(message), callback_(callback) {} + + const char *tag() const override { return "MessagePopupScreen"; } + UI::Event OnChoice; protected: diff --git a/Common/UI/UIScreen.cpp b/Common/UI/UIScreen.cpp index 9fe4e44e1d..62ad927e55 100644 --- a/Common/UI/UIScreen.cpp +++ b/Common/UI/UIScreen.cpp @@ -1,5 +1,6 @@ #include #include "Common/System/Display.h" +#include "Common/System/System.h" #include "Common/Input/InputState.h" #include "Common/Input/KeyCodes.h" #include "Common/Math/curves.h" @@ -9,7 +10,6 @@ #include "Common/UI/Root.h" #include "Common/Data/Text/I18n.h" #include "Common/Render/DrawBuffer.h" - #include "Common/Log.h" static const bool ClickDebug = false; @@ -426,7 +426,6 @@ void PopupScreen::CreateViews() { CreatePopupContents(box_); root_->SetDefaultFocusView(box_); - if (ShowButtons() && !button1_.empty()) { // And the two buttons at the bottom. LinearLayout *buttonRow = new LinearLayout(ORIENT_HORIZONTAL, new LinearLayoutParams(200, WRAP_CONTENT)); diff --git a/Qt/QtMain.cpp b/Qt/QtMain.cpp index 098ed7e15b..a787d95d6d 100644 --- a/Qt/QtMain.cpp +++ b/Qt/QtMain.cpp @@ -161,6 +161,8 @@ std::string System_GetProperty(SystemProperty prop) { return result; } #endif + case SYSPROP_BUILD_VERSION: + return PPSSPP_GIT_VERSION; default: return ""; } diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp index e3178aa102..f46af287ad 100644 --- a/SDL/SDLMain.cpp +++ b/SDL/SDLMain.cpp @@ -431,6 +431,8 @@ std::string System_GetProperty(SystemProperty prop) { } return result; } + case SYSPROP_BUILD_VERSION: + return PPSSPP_GIT_VERSION; default: return ""; } diff --git a/UWP/PPSSPP_UWPMain.cpp b/UWP/PPSSPP_UWPMain.cpp index 7559148a49..ac5d8d4819 100644 --- a/UWP/PPSSPP_UWPMain.cpp +++ b/UWP/PPSSPP_UWPMain.cpp @@ -347,6 +347,8 @@ std::string System_GetProperty(SystemProperty prop) { return ""; case SYSPROP_GPUDRIVER_VERSION: return ""; + case SYSPROP_BUILD_VERSION: + return PPSSPP_GIT_VERSION; default: return ""; } diff --git a/Windows/main.cpp b/Windows/main.cpp index e46931cff7..7fe8de2ddc 100644 --- a/Windows/main.cpp +++ b/Windows/main.cpp @@ -234,6 +234,8 @@ std::string System_GetProperty(SystemProperty prop) { gpuDriverVersion = GetVideoCardDriverVersion(); } return gpuDriverVersion; + case SYSPROP_BUILD_VERSION: + return PPSSPP_GIT_VERSION; default: return ""; } diff --git a/android/jni/app-android.cpp b/android/jni/app-android.cpp index 6574ef63c1..ca80a429ba 100644 --- a/android/jni/app-android.cpp +++ b/android/jni/app-android.cpp @@ -412,6 +412,8 @@ std::string System_GetProperty(SystemProperty prop) { return mogaVersion; case SYSPROP_BOARDNAME: return boardName; + case SYSPROP_BUILD_VERSION: + return PPSSPP_GIT_VERSION; default: return ""; } diff --git a/ios/main.mm b/ios/main.mm index e90b60e8a1..5d18ade897 100644 --- a/ios/main.mm +++ b/ios/main.mm @@ -108,6 +108,8 @@ std::string System_GetProperty(SystemProperty prop) { return StringFromFormat("iOS %s", version.c_str()); case SYSPROP_LANGREGION: return [[[NSLocale currentLocale] objectForKey:NSLocaleIdentifier] UTF8String]; + case SYSPROP_BUILD_VERSION: + return PPSSPP_GIT_VERSION; default: return ""; }