mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Add a GetProperty query for the git version
This commit is contained in:
parent
16ee5a50c7
commit
85f5136a81
@ -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.
|
||||
|
@ -55,6 +55,9 @@ class MessagePopupScreen : public PopupScreen {
|
||||
public:
|
||||
MessagePopupScreen(std::string title, std::string message, std::string button1, std::string button2, std::function<void(bool)> callback)
|
||||
: PopupScreen(title, button1, button2), message_(message), callback_(callback) {}
|
||||
|
||||
const char *tag() const override { return "MessagePopupScreen"; }
|
||||
|
||||
UI::Event OnChoice;
|
||||
|
||||
protected:
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <algorithm>
|
||||
#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));
|
||||
|
@ -161,6 +161,8 @@ std::string System_GetProperty(SystemProperty prop) {
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
case SYSPROP_BUILD_VERSION:
|
||||
return PPSSPP_GIT_VERSION;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
@ -431,6 +431,8 @@ std::string System_GetProperty(SystemProperty prop) {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
case SYSPROP_BUILD_VERSION:
|
||||
return PPSSPP_GIT_VERSION;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
@ -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 "";
|
||||
}
|
||||
|
@ -234,6 +234,8 @@ std::string System_GetProperty(SystemProperty prop) {
|
||||
gpuDriverVersion = GetVideoCardDriverVersion();
|
||||
}
|
||||
return gpuDriverVersion;
|
||||
case SYSPROP_BUILD_VERSION:
|
||||
return PPSSPP_GIT_VERSION;
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
@ -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 "";
|
||||
}
|
||||
|
@ -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 "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user