mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Twinbee Portable: Add config flag to avoid the system languages the game doesn't work with
This commit is contained in:
parent
59c0395b41
commit
9482578fbb
5 changed files with 19 additions and 0 deletions
|
@ -119,6 +119,7 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) {
|
|||
CheckSetting(iniFile, gameID, "AllowDownloadCLUT", &flags_.AllowDownloadCLUT);
|
||||
CheckSetting(iniFile, gameID, "NearestFilteringOnFramebufferCreate", &flags_.NearestFilteringOnFramebufferCreate);
|
||||
CheckSetting(iniFile, gameID, "SecondaryTextureCache", &flags_.SecondaryTextureCache);
|
||||
CheckSetting(iniFile, gameID, "EnglishOrJapaneseOnly", &flags_.EnglishOrJapaneseOnly);
|
||||
}
|
||||
|
||||
void Compatibility::CheckVRSettings(IniFile &iniFile, const std::string &gameID) {
|
||||
|
|
|
@ -90,6 +90,7 @@ struct CompatFlags {
|
|||
bool AllowDownloadCLUT;
|
||||
bool NearestFilteringOnFramebufferCreate;
|
||||
bool SecondaryTextureCache;
|
||||
bool EnglishOrJapaneseOnly;
|
||||
};
|
||||
|
||||
struct VRCompat {
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "Core/MIPS/MIPS.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Core/MemMap.h"
|
||||
#include "Core/System.h"
|
||||
|
||||
const int PSP_UMD_POPUP_DISABLE = 0;
|
||||
const int PSP_UMD_POPUP_ENABLE = 1;
|
||||
|
@ -40,6 +41,11 @@ static u32 backlightOffTime;
|
|||
void __ImposeInit()
|
||||
{
|
||||
language = g_Config.iLanguage;
|
||||
if (PSP_CoreParameter().compat.flags().EnglishOrJapaneseOnly) {
|
||||
if (language != PSP_SYSTEMPARAM_LANGUAGE_ENGLISH && language != PSP_SYSTEMPARAM_LANGUAGE_JAPANESE) {
|
||||
language = PSP_SYSTEMPARAM_LANGUAGE_ENGLISH;
|
||||
}
|
||||
}
|
||||
buttonValue = g_Config.iButtonPreference;
|
||||
umdPopup = PSP_UMD_POPUP_DISABLE;
|
||||
backlightOffTime = 0;
|
||||
|
|
|
@ -886,6 +886,11 @@ static u32 sceUtilityGetSystemParamInt(u32 id, u32 destaddr)
|
|||
break;
|
||||
case PSP_SYSTEMPARAM_ID_INT_LANGUAGE:
|
||||
param = g_Config.iLanguage;
|
||||
if (PSP_CoreParameter().compat.flags().EnglishOrJapaneseOnly) {
|
||||
if (param != PSP_SYSTEMPARAM_LANGUAGE_ENGLISH && param != PSP_SYSTEMPARAM_LANGUAGE_JAPANESE) {
|
||||
param = PSP_SYSTEMPARAM_LANGUAGE_ENGLISH;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case PSP_SYSTEMPARAM_ID_INT_BUTTON_PREFERENCE:
|
||||
param = g_Config.iButtonPreference;
|
||||
|
|
|
@ -1264,3 +1264,9 @@ ULES00850 = true
|
|||
ULUS10297 = true
|
||||
ULJM05516 = true
|
||||
NPJH50408 = true
|
||||
|
||||
[EnglishOrJapaneseOnly]
|
||||
# Twinbee Portable, see issue #16382
|
||||
ULAS42089 = true
|
||||
ULJM05221 = true
|
||||
ULJM05323 = true
|
Loading…
Add table
Reference in a new issue