mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Use compat.ini instead
This commit is contained in:
1 parent
965daea455
commit
e373c9063c
7 files changed
+27
-4
No files matched your search
@@ -96,6 +96,7 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) {
|
||||
CheckSetting(iniFile, gameID, "MaliDepthStencilBugWorkaround", &flags_.MaliDepthStencilBugWorkaround);
|
||||
CheckSetting(iniFile, gameID, "ZZT3SelectHack", &flags_.ZZT3SelectHack);
|
||||
CheckSetting(iniFile, gameID, "AllowLargeFBTextureOffsets", &flags_.AllowLargeFBTextureOffsets);
|
||||
CheckSetting(iniFile, gameID, "AtracLoopHack", &flags_.AtracLoopHack);
|
||||
}
|
||||
|
||||
void Compatibility::CheckSetting(IniFile &iniFile, const std::string &gameID, const char *option, bool *flag) {
|
||||
|
||||
@@ -86,6 +86,7 @@ struct CompatFlags {
|
||||
bool MaliDepthStencilBugWorkaround;
|
||||
bool ZZT3SelectHack;
|
||||
bool AllowLargeFBTextureOffsets;
|
||||
bool AtracLoopHack;
|
||||
};
|
||||
|
||||
class IniFile;
|
||||
|
||||
@@ -956,7 +956,6 @@ static ConfigSetting soundSettings[] = {
|
||||
ConfigSetting("AltSpeedVolume", &g_Config.iAltSpeedVolume, -1, true, true),
|
||||
ConfigSetting("AudioDevice", &g_Config.sAudioDevice, "", true, false),
|
||||
ConfigSetting("AutoAudioDevice", &g_Config.bAutoAudioDevice, true, true, false),
|
||||
ConfigSetting("HackSound", &g_Config.bHackSound, false, true, false),
|
||||
|
||||
ConfigSetting(false),
|
||||
};
|
||||
|
||||
@@ -256,7 +256,6 @@ public:
|
||||
bool bExtraAudioBuffering; // For bluetooth
|
||||
std::string sAudioDevice;
|
||||
bool bAutoAudioDevice;
|
||||
bool bHackSound;
|
||||
|
||||
// UI
|
||||
bool bShowDebuggerOnLoad;
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "Core/HLE/sceUtility.h"
|
||||
#include "Core/HLE/sceKernelMemory.h"
|
||||
#include "Core/HLE/sceAtrac.h"
|
||||
#include "Core/System.h"
|
||||
|
||||
// Notes about sceAtrac buffer management
|
||||
//
|
||||
@@ -1170,7 +1171,7 @@ static u32 sceAtracAddStreamData(int atracID, u32 bytesToAdd) {
|
||||
atrac->first_.offset += bytesToAdd;
|
||||
atrac->bufferValidBytes_ += bytesToAdd;
|
||||
|
||||
if (g_Config.bHackSound && atrac->bufferState_ == ATRAC_STATUS_STREAMED_LOOP_FROM_END && atrac->RemainingFrames() > 2) { // Code Lyoko don't like SeekToSample for unknown reason
|
||||
if (PSP_CoreParameter().compat.flags().AtracLoopHack && atrac->bufferState_ == ATRAC_STATUS_STREAMED_LOOP_FROM_END && atrac->RemainingFrames() > 2) {
|
||||
atrac->loopNum_++;
|
||||
atrac->SeekToSample(atrac->loopStartSample_ - atrac->FirstOffsetExtra() - atrac->firstSampleOffset_);
|
||||
}
|
||||
|
||||
@@ -693,7 +693,6 @@ void GameSettingsScreen::CreateViews() {
|
||||
PopupMultiChoiceDynamic *MicChoice = audioSettings->Add(new PopupMultiChoiceDynamic(&g_Config.sMicDevice, a->T("Microphone Device"), micList, nullptr, screenManager()));
|
||||
MicChoice->OnChoice.Handle(this, &GameSettingsScreen::OnMicDeviceChange);
|
||||
}
|
||||
audioSettings->Add(new CheckBox(&g_Config.bHackSound, a->T("Hack sound")));
|
||||
|
||||
// Control
|
||||
LinearLayout *controlsSettings = AddTab("GameSettingsControls", ms->T("Controls"));
|
||||
|
||||
@@ -1240,3 +1240,26 @@ LBSW10345 = true # Some modded version found in our report logs
|
||||
ULES00928 = true
|
||||
ULUS10312 = true
|
||||
ULKS46154 = true
|
||||
|
||||
[AtracLoopHack]
|
||||
#Atrac looped incorrectly see #7601 #13773 #11586 ##10139 #12083 #12083
|
||||
Fix #12083 the Golf Rally fixed
|
||||
#Coded Arms: Contagion
|
||||
ULUS10184 = true
|
||||
ULJM05243 = true
|
||||
ULKS46139 = true
|
||||
|
||||
#Gripshift
|
||||
ULUS10040 = true
|
||||
ULES00177 = true
|
||||
ULKS46040 = true
|
||||
ULJM05089 = true
|
||||
|
||||
#Jackass the Game
|
||||
ULUS10303 = true
|
||||
ULES00897 = true
|
||||
|
||||
#Shrek smash
|
||||
ULUS10194 = true
|
||||
ULES00618 = true
|
||||
|
||||
Reference in new issue
Block a user