Add a compatibility flag to revert sceAtrac to before #6976. Makes audio work in GTA again.

Hopefully we will find a better fix in the future.

Also see issue #7863.
This commit is contained in:
Henrik Rydgard committed 2015-09-27 11:51:46 +02:00
1 parent 5ff5cf1ac7
commit eb4ca0cf81
6 files changed
+116 -17

No files matched your search

+6 -4
View File
@@ -23,13 +23,14 @@ void Compatibility::Load(const std::string &gameID) {
IniFile compat;
Clear();
std::string path = GetSysDirectory(DIRECTORY_SYSTEM) + "compat.ini";
if (compat.Load(path)) {
// This loads from assets.
if (compat.LoadFromVFS("compat.ini")) {
LoadIniSection(compat, gameID);
}
// This loads from assets.
if (compat.LoadFromVFS("compat.ini")) {
// This one is user-editable. Need to load it after the system one.
std::string path = GetSysDirectory(DIRECTORY_SYSTEM) + "compat.ini";
if (compat.Load(path)) {
LoadIniSection(compat, gameID);
}
}
@@ -40,4 +41,5 @@ void Compatibility::Clear() {
void Compatibility::LoadIniSection(IniFile &iniFile, std::string section) {
iniFile.Get(section.c_str(), "NoDepthRounding", &flags_.NoDepthRounding, flags_.NoDepthRounding);
iniFile.Get(section.c_str(), "GTAMusicFix", &flags_.GTAMusicFix, flags_.GTAMusicFix);
}