Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #9317 from JosJuice/default-enabled-codes
GameSettings: Enable compatibility patches by default
- Loading branch information
Showing
21 changed files
with
125 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,5 @@ | |
| [OnFrame] | ||
| $Fix 2D Rendering | ||
| 0x80319214:dword:0x48113250 | ||
| [OnFrame_Enabled] | ||
| $Fix 2D Rendering | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,5 @@ | |
| [OnFrame] | ||
| $Fix 2D Rendering | ||
| 0x803C92D4:dword:0x480DA8E4 | ||
| [OnFrame_Enabled] | ||
| $Fix 2D Rendering | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,5 @@ | |
| [OnFrame] | ||
| $Bypass FIFO reset | ||
| 0x8028EF00:dword:0x48000638 | ||
| [OnFrame_Enabled] | ||
| $Bypass FIFO reset | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,5 @@ | |
| [OnFrame] | ||
| $Bypass FIFO reset | ||
| 0x8028EE80:dword:0x48000638 | ||
| [OnFrame_Enabled] | ||
| $Bypass FIFO reset | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,3 +24,5 @@ | |
| # | ||
| $Fix file reads (dcache bypass) | ||
| 0x800d2e68:dword:0x60000000 | ||
| [OnFrame_Enabled] | ||
| $Fix file reads (dcache bypass) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,3 +24,5 @@ | |
| # | ||
| $Fix file reads (dcache bypass) | ||
| 0x80164b90:dword:0x60000000 | ||
| [OnFrame_Enabled] | ||
| $Fix file reads (dcache bypass) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| // Copyright 2020 Dolphin Emulator Project | ||
| // Licensed under GPLv2+ | ||
| // Refer to the license.txt file included. | ||
|
|
||
| #pragma once | ||
|
|
||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| #include "Common/IniFile.h" | ||
|
|
||
| template <typename T> | ||
| void ReadEnabledOrDisabled(const IniFile& ini, const std::string& section, bool enabled, | ||
| std::vector<T>* codes) | ||
| { | ||
| std::vector<std::string> lines; | ||
| ini.GetLines(section, &lines, false); | ||
|
|
||
| for (const std::string& line : lines) | ||
| { | ||
| if (line.empty() || line[0] != '$') | ||
| continue; | ||
|
|
||
| for (T& code : *codes) | ||
| { | ||
| // Exclude the initial '$' from the comparison. | ||
| if (line.compare(1, std::string::npos, code.name) == 0) | ||
| code.enabled = enabled; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| template <typename T> | ||
| void ReadEnabledAndDisabled(const IniFile& ini, const std::string& section, std::vector<T>* codes) | ||
| { | ||
| ReadEnabledOrDisabled(ini, section + "_Enabled", true, codes); | ||
| ReadEnabledOrDisabled(ini, section + "_Disabled", false, codes); | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.