Skip to content

Commit 61016b8

Browse files
authored
Merge pull request #20468 from hrydgard/dragons-lair-workaround
Add workaround for scePsmf LLE not working with Dragon's Lair
2 parents 7d67d73 + 266a6a3 commit 61016b8

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

Core/Compatibility.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) {
150150
CheckSetting(iniFile, gameID, "UseFFMPEGFindStreamInfo", &flags_.UseFFMPEGFindStreamInfo);
151151
CheckSetting(iniFile, gameID, "SoftwareRasterDepth", &flags_.SoftwareRasterDepth);
152152
CheckSetting(iniFile, gameID, "DisableHLESceFont", &flags_.DisableHLESceFont);
153+
CheckSetting(iniFile, gameID, "ForceHLEPsmf", &flags_.ForceHLEPsmf);
153154
}
154155

155156
void Compatibility::CheckVRSettings(IniFile &iniFile, const std::string &gameID) {

Core/Compatibility.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ struct CompatFlags {
113113
bool UseFFMPEGFindStreamInfo;
114114
bool SoftwareRasterDepth;
115115
bool DisableHLESceFont;
116+
bool ForceHLEPsmf;
116117
};
117118

118119
struct VRCompat {

Core/HLE/HLE.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ static DisableHLEFlags GetDisableHLEFlags() {
202202
if (PSP_CoreParameter().compat.flags().DisableHLESceFont) {
203203
flags |= DisableHLEFlags::sceFont;
204204
}
205+
if (PSP_CoreParameter().compat.flags().ForceHLEPsmf) {
206+
flags &= ~(DisableHLEFlags::scePsmf | DisableHLEFlags::scePsmfPlayer);
207+
}
205208

206209
flags &= ~(DisableHLEFlags)g_Config.iForceEnableHLE;
207210
return flags;

assets/compat.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,3 +1923,8 @@ UCKS45164 = true
19231923
UCES01184 = true
19241924
UCUS98668 = true
19251925
UCJP00174 = true
1926+
1927+
[ForceHLEPsmf]
1928+
# See issue #20467
1929+
NPUH10105 = true
1930+
NPEH00122 = true

0 commit comments

Comments
 (0)