mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-03 03:27:19 +00:00
OpenXR - Move skyplane compat flag into compatvr.ini
This commit is contained in:
parent
e406dc4730
commit
e4f44e680d
@ -301,7 +301,7 @@ bool PreVRRender() {
|
||||
VR_SetConfig(VR_CONFIG_3D_GEOMETRY_COUNT, VR_GetConfig(VR_CONFIG_3D_GEOMETRY_COUNT) / 2);
|
||||
|
||||
// Set compatibility
|
||||
vrCompat[VR_COMPAT_SKYPLANE] = PSP_CoreParameter().compat.flags().VRSkyplane;
|
||||
vrCompat[VR_COMPAT_SKYPLANE] = PSP_CoreParameter().compat.vrCompat().Skyplane;
|
||||
|
||||
// Set customizations
|
||||
VR_SetConfig(VR_CONFIG_6DOF_ENABLED, g_Config.bEnable6DoF);
|
||||
|
@ -46,6 +46,7 @@ void Compatibility::Load(const std::string &gameID) {
|
||||
IniFile compat;
|
||||
// This loads from assets.
|
||||
if (compat.LoadFromVFS("compatvr.ini")) {
|
||||
CheckSetting(compat, gameID, "Skyplane", &vrCompat_.Skyplane);
|
||||
CheckSetting(compat, gameID, "UnitsPerMeter", &vrCompat_.UnitsPerMeter);
|
||||
}
|
||||
}
|
||||
@ -108,7 +109,6 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) {
|
||||
CheckSetting(iniFile, gameID, "SplitFramebufferMargin", &flags_.SplitFramebufferMargin);
|
||||
CheckSetting(iniFile, gameID, "ForceLowerResolutionForEffectsOn", &flags_.ForceLowerResolutionForEffectsOn);
|
||||
CheckSetting(iniFile, gameID, "AllowDownloadCLUT", &flags_.AllowDownloadCLUT);
|
||||
CheckSetting(iniFile, gameID, "VRSkyplane", &flags_.VRSkyplane);
|
||||
}
|
||||
|
||||
void Compatibility::CheckSetting(IniFile &iniFile, const std::string &gameID, const char *option, bool *flag) {
|
||||
|
@ -89,10 +89,10 @@ struct CompatFlags {
|
||||
bool SplitFramebufferMargin;
|
||||
bool ForceLowerResolutionForEffectsOn;
|
||||
bool AllowDownloadCLUT;
|
||||
bool VRSkyplane;
|
||||
};
|
||||
|
||||
struct VRCompat {
|
||||
bool Skyplane;
|
||||
float UnitsPerMeter;
|
||||
};
|
||||
|
||||
|
@ -1302,20 +1302,3 @@ ULKS46087 = true
|
||||
|
||||
[AllowDownloadCLUT]
|
||||
# Temporary compatibility option, while developing a GPU CLUT-from-framebuffer path.
|
||||
|
||||
[VRSkyplane]
|
||||
# Grand Theft Auto: Liberty City Stories
|
||||
ULUS10041 = true
|
||||
ULES00151 = true
|
||||
ULJM05255 = true
|
||||
ULJM05359 = true
|
||||
ULJM05885 = true
|
||||
NPJH50825 = true
|
||||
|
||||
# Grand Theft Auto: Vice City Stories
|
||||
ULES00502 = true
|
||||
ULUS10160 = true
|
||||
ULJM05297 = true
|
||||
ULJM05395 = true
|
||||
ULJM05884 = true
|
||||
NPJH50827 = true
|
||||
|
@ -29,6 +29,24 @@
|
||||
# Issue numbers refer to issues on https://github.com/hrydgard/ppsspp/issues
|
||||
# ========================================================================================
|
||||
|
||||
|
||||
[Skyplane]
|
||||
# Grand Theft Auto: Liberty City Stories
|
||||
ULUS10041 = true
|
||||
ULES00151 = true
|
||||
ULJM05255 = true
|
||||
ULJM05359 = true
|
||||
ULJM05885 = true
|
||||
NPJH50825 = true
|
||||
|
||||
# Grand Theft Auto: Vice City Stories
|
||||
ULES00502 = true
|
||||
ULUS10160 = true
|
||||
ULJM05297 = true
|
||||
ULJM05395 = true
|
||||
ULJM05884 = true
|
||||
NPJH50827 = true
|
||||
|
||||
[UnitsPerMeter]
|
||||
# Values exported from https://github.com/CarlKenner/ppsspp/tree/VR/Sys/GameSettings
|
||||
ELF000000 = 10.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user