mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Adding SYSPROP_SYSTEMBUILD
Using `SYSPROP_SYSTEMVERSION` is bad idea since it's set under `Available as Int`, instead I just added `SYSPROP_SYSTEMBUILD`
This commit is contained in:
parent
f1771b9474
commit
b015225bf6
4 changed files with 4 additions and 3 deletions
|
@ -124,6 +124,7 @@ enum SystemKeyboardLayout {
|
|||
|
||||
enum SystemProperty {
|
||||
SYSPROP_NAME,
|
||||
SYSPROP_SYSTEMBUILD,
|
||||
SYSPROP_LANGREGION,
|
||||
SYSPROP_CPUINFO,
|
||||
SYSPROP_BOARDNAME,
|
||||
|
|
|
@ -490,7 +490,7 @@ void SystemInfoScreen::CreateTabs() {
|
|||
#if PPSSPP_PLATFORM(ANDROID)
|
||||
systemInfo->Add(new InfoItem(si->T("System Version"), StringFromInt(System_GetPropertyInt(SYSPROP_SYSTEMVERSION))));
|
||||
#elif PPSSPP_PLATFORM(WINDOWS)
|
||||
std::string sysVersion = System_GetProperty(SYSPROP_SYSTEMVERSION);
|
||||
std::string sysVersion = System_GetProperty(SYSPROP_SYSTEMBUILD);
|
||||
if (!sysVersion.empty()) {
|
||||
systemInfo->Add(new InfoItem(si->T("OS Build"), sysVersion));
|
||||
}
|
||||
|
|
|
@ -314,7 +314,7 @@ std::string System_GetProperty(SystemProperty prop) {
|
|||
switch (prop) {
|
||||
case SYSPROP_NAME:
|
||||
return GetSystemName();
|
||||
case SYSPROP_SYSTEMVERSION:
|
||||
case SYSPROP_SYSTEMBUILD:
|
||||
return GetWindowsBuild();
|
||||
case SYSPROP_LANGREGION:
|
||||
return GetLangRegion();
|
||||
|
|
|
@ -204,7 +204,7 @@ std::string System_GetProperty(SystemProperty prop) {
|
|||
switch (prop) {
|
||||
case SYSPROP_NAME:
|
||||
return osName;
|
||||
case SYSPROP_SYSTEMVERSION:
|
||||
case SYSPROP_SYSTEMBUILD:
|
||||
return osVersion;
|
||||
case SYSPROP_LANGREGION:
|
||||
return langRegion;
|
||||
|
|
Loading…
Add table
Reference in a new issue