mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add a compat.ini flag for software rendering, use it to force on in Darkstalkers
This commit is contained in:
parent
86de0a49f2
commit
19a1fa8430
5 changed files with 12 additions and 3 deletions
|
@ -67,6 +67,7 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) {
|
|||
CheckSetting(iniFile, gameID, "JitInvalidationHack", &flags_.JitInvalidationHack);
|
||||
CheckSetting(iniFile, gameID, "HideISOFiles", &flags_.HideISOFiles);
|
||||
CheckSetting(iniFile, gameID, "MoreAccurateVMMUL", &flags_.MoreAccurateVMMUL);
|
||||
CheckSetting(iniFile, gameID, "ForceSoftwareRenderer", &flags_.ForceSoftwareRenderer);
|
||||
}
|
||||
|
||||
void Compatibility::CheckSetting(IniFile &iniFile, const std::string &gameID, const char *option, bool *flag) {
|
||||
|
|
|
@ -67,6 +67,7 @@ struct CompatFlags {
|
|||
bool JitInvalidationHack;
|
||||
bool HideISOFiles;
|
||||
bool MoreAccurateVMMUL;
|
||||
bool ForceSoftwareRenderer;
|
||||
};
|
||||
|
||||
class IniFile;
|
||||
|
|
|
@ -349,6 +349,11 @@ bool PSP_InitStart(const CoreParameter &coreParam, std::string *error_string) {
|
|||
|
||||
CPU_Init();
|
||||
|
||||
// Compat flags get loaded in CPU_Init (which is a bit of a misnomer) so we check for SW renderer here.
|
||||
if (g_Config.bSoftwareRendering || PSP_CoreParameter().compat.flags().ForceSoftwareRenderer) {
|
||||
coreParameter.gpuCore = GPUCORE_SOFTWARE;
|
||||
}
|
||||
|
||||
*error_string = coreParameter.errorString;
|
||||
bool success = coreParameter.fileToStart != "";
|
||||
if (!success) {
|
||||
|
|
|
@ -232,9 +232,6 @@ void EmuScreen::bootGame(const std::string &filename) {
|
|||
break;
|
||||
#endif
|
||||
}
|
||||
if (g_Config.bSoftwareRendering) {
|
||||
coreParam.gpuCore = GPUCORE_SOFTWARE;
|
||||
}
|
||||
|
||||
// Preserve the existing graphics context.
|
||||
coreParam.graphicsContext = PSP_CoreParameter().graphicsContext;
|
||||
|
|
|
@ -683,3 +683,8 @@ UCET00844 = true
|
|||
UCUS98705 = true
|
||||
UCED00971 = true
|
||||
UCUS98713 = true
|
||||
|
||||
[ForceSoftwareRenderer]
|
||||
# Darkstalkers
|
||||
ULES00016 = true
|
||||
ULUS10005 = true
|
||||
|
|
Loading…
Add table
Reference in a new issue