Merge pull request #16655 from lvonasek/compat_openxr_improves

OpenXR - Force flat mode for Madden NFL games
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2022-12-26 16:43:27 +01:00
commit dd5bb9acfd
4 files changed
+34 -1

No files matched your search

+2 -1
View File
@@ -671,8 +671,9 @@ bool StartVRRender() {
// Decide if the scene is 3D or not
bool stereo = hasUnitScale && g_Config.bEnableStereo;
bool forceFlat = PSP_CoreParameter().compat.vrCompat().ForceFlatScreen;
VR_SetConfigFloat(VR_CONFIG_CANVAS_ASPECT, 480.0f / 272.0f);
if (g_Config.bEnableVR && !pspKeys[CTRL_SCREEN] && (appMode == VR_GAME_MODE) && (vr3DGeometryCount > 15)) {
if (g_Config.bEnableVR && !pspKeys[CTRL_SCREEN] && !forceFlat && (appMode == VR_GAME_MODE) && (vr3DGeometryCount > 15)) {
VR_SetConfig(VR_CONFIG_MODE, stereo ? VR_MODE_STEREO_6DOF : VR_MODE_MONO_6DOF);
vrFlatGame = false;
} else {
+1
View File
@@ -127,6 +127,7 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) {
}
void Compatibility::CheckVRSettings(IniFile &iniFile, const std::string &gameID) {
CheckSetting(iniFile, gameID, "ForceFlatScreen", &vrCompat_.ForceFlatScreen);
CheckSetting(iniFile, gameID, "IdentityViewHack", &vrCompat_.IdentityViewHack);
CheckSetting(iniFile, gameID, "Skyplane", &vrCompat_.Skyplane);
CheckSetting(iniFile, gameID, "UnitsPerMeter", &vrCompat_.UnitsPerMeter);
+1
View File
@@ -98,6 +98,7 @@ struct CompatFlags {
};
struct VRCompat {
bool ForceFlatScreen;
bool IdentityViewHack;
bool Skyplane;
float UnitsPerMeter;
+30
View File
@@ -30,6 +30,36 @@
# ========================================================================================
[ForceFlatScreen]
# Forces flat screen rendering in games which don't work in VR.
# Madden NFL 06
ULES00147 = true
ULUS10024 = true
# Madden NFL 07
ULUS10117 = true
# Madden NFL 08
ULES00867 = true
ULUS10275 = true
# Madden NFL 09
ULES01093 = true
ULUS10352 = true
# Madden NFL 10
NPEH00010 = true
ULUS10441 = true
# Madden NFL 11
ULJM05757 = true
ULUS10541 = true
# Madden NFL 12
ULUS10581 = true
[IdentityViewHack]
# Disables head tracking for render passes where view matrix is Identity