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:
Bashar Astifan 2024-09-03 20:42:34 +04:00
parent f1771b9474
commit b015225bf6
4 changed files with 4 additions and 3 deletions

View file

@ -124,6 +124,7 @@ enum SystemKeyboardLayout {
enum SystemProperty {
SYSPROP_NAME,
SYSPROP_SYSTEMBUILD,
SYSPROP_LANGREGION,
SYSPROP_CPUINFO,
SYSPROP_BOARDNAME,

View file

@ -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));
}

View file

@ -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();

View file

@ -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;