GameDB: P2

This commit is contained in:
Stenzek 2023-12-07 20:16:22 +10:00
parent 10473f1cfb
commit b7c53102c6
No known key found for this signature in database
2 changed files with 51 additions and 10 deletions

View file

@ -315007,7 +315007,10 @@
"discSetSerials": [ "discSetSerials": [
"SLPM-86967", "SLPM-86967",
"SLPS-02826" "SLPS-02826"
] ],
"traits": {
"ForcePGXPCPUMode": true
}
}, },
{ {
"serial": "SLPS-02785", "serial": "SLPS-02785",
@ -315047,7 +315050,10 @@
"discSetSerials": [ "discSetSerials": [
"SLPS-02785", "SLPS-02785",
"SLPS-02786" "SLPS-02786"
] ],
"traits": {
"ForcePGXPCPUMode": true
}
}, },
{ {
"serial": "SLPS-02826", "serial": "SLPS-02826",
@ -315087,7 +315093,10 @@
"discSetSerials": [ "discSetSerials": [
"SLPM-86967", "SLPM-86967",
"SLPS-02826" "SLPS-02826"
] ],
"traits": {
"ForcePGXPCPUMode": true
}
}, },
{ {
"serial": "SLPS-02786", "serial": "SLPS-02786",
@ -315127,7 +315136,10 @@
"discSetSerials": [ "discSetSerials": [
"SLPS-02785", "SLPS-02785",
"SLPS-02786" "SLPS-02786"
] ],
"traits": {
"ForcePGXPCPUMode": true
}
}, },
{ {
"serial": "SCPS-45495", "serial": "SCPS-45495",
@ -315153,7 +315165,10 @@
"controllers": [ "controllers": [
"AnalogController", "AnalogController",
"DigitalController" "DigitalController"
] ],
"traits": {
"ForcePGXPCPUMode": true
}
}, },
{ {
"serial": "SLUS-01158", "serial": "SLUS-01158",
@ -315192,6 +315207,9 @@
"compatibility": { "compatibility": {
"rating": 5, "rating": 5,
"versionTested": "0.1-908-g9f22684" "versionTested": "0.1-908-g9f22684"
},
"traits": {
"ForcePGXPCPUMode": true
} }
}, },
{ {
@ -315227,7 +315245,10 @@
} }
] ]
} }
] ],
"traits": {
"ForcePGXPCPUMode": true
}
}, },
{ {
"serial": "SCPS-45410", "serial": "SCPS-45410",
@ -315252,7 +315273,10 @@
"controllers": [ "controllers": [
"AnalogController", "AnalogController",
"DigitalController" "DigitalController"
] ],
"traits": {
"ForcePGXPCPUMode": true
}
}, },
{ {
"serial": "SLPS-02100", "serial": "SLPS-02100",
@ -315291,6 +315315,9 @@
"compatibility": { "compatibility": {
"rating": 5, "rating": 5,
"versionTested": "0.1-3771-g8df0496d" "versionTested": "0.1-3771-g8df0496d"
},
"traits": {
"ForcePGXPCPUMode": true
} }
}, },
{ {
@ -315325,7 +315352,10 @@
} }
] ]
} }
] ],
"traits": {
"ForcePGXPCPUMode": true
}
}, },
{ {
"serial": "SLPS-91211", "serial": "SLPS-91211",
@ -315361,7 +315391,10 @@
} }
] ]
} }
] ],
"traits": {
"ForcePGXPCPUMode": true
}
}, },
{ {
"serial": "SLPS-02292", "serial": "SLPS-02292",

View file

@ -227,7 +227,7 @@ const char* GameDatabase::GetCompatibilityRatingDisplayName(CompatibilityRating
void GameDatabase::Entry::ApplySettings(Settings& settings, bool display_osd_messages) const void GameDatabase::Entry::ApplySettings(Settings& settings, bool display_osd_messages) const
{ {
constexpr float osd_duration = 5.0f; constexpr float osd_duration = Host::OSD_INFO_DURATION;
if (display_active_start_offset.has_value()) if (display_active_start_offset.has_value())
settings.display_active_start_offset = display_active_start_offset.value(); settings.display_active_start_offset = display_active_start_offset.value();
@ -438,9 +438,17 @@ void GameDatabase::Entry::ApplySettings(Settings& settings, bool display_osd_mes
{ {
if (display_osd_messages && settings.gpu_pgxp_enable && !settings.gpu_pgxp_cpu) if (display_osd_messages && settings.gpu_pgxp_enable && !settings.gpu_pgxp_cpu)
{ {
#ifndef __ANDROID__
Host::AddIconOSDMessage("gamedb_force_pgxp_cpu", ICON_FA_MICROCHIP, Host::AddIconOSDMessage("gamedb_force_pgxp_cpu", ICON_FA_MICROCHIP,
TRANSLATE_STR("OSDMessage", "PGXP CPU mode forced by compatibility settings."), TRANSLATE_STR("OSDMessage", "PGXP CPU mode forced by compatibility settings."),
osd_duration); osd_duration);
#else
Host::AddIconOSDMessage(
"gamedb_force_pgxp_cpu", ICON_FA_MICROCHIP,
"This game requires PGXP CPU mode, which increases system requirements.\n" ICON_FA_EXCLAMATION_TRIANGLE
" If the game runs too slow, disable PGXP for this game.",
Host::OSD_WARNING_DURATION);
#endif
} }
settings.gpu_pgxp_cpu = true; settings.gpu_pgxp_cpu = true;