mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 08:15:33 +01:00
Merge pull request #297 from magumagu/remove-loaddisclist
PatchEngine: Remove no-op function LoadDiscList.
This commit is contained in:
commit
4186eaf3ed
@ -45,7 +45,6 @@ const char *PatchTypeStrings[] =
|
|||||||
|
|
||||||
std::vector<Patch> onFrame;
|
std::vector<Patch> onFrame;
|
||||||
std::map<u32, int> speedHacks;
|
std::map<u32, int> speedHacks;
|
||||||
std::vector<std::string> discList;
|
|
||||||
|
|
||||||
void LoadPatchSection(const std::string& section, std::vector<Patch>& patches, IniFile& globalIni, IniFile& localIni)
|
void LoadPatchSection(const std::string& section, std::vector<Patch>& patches, IniFile& globalIni, IniFile& localIni)
|
||||||
{
|
{
|
||||||
@ -126,23 +125,6 @@ void LoadPatchSection(const std::string& section, std::vector<Patch>& patches, I
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void LoadDiscList(const std::string& section, IniFile& ini)
|
|
||||||
{
|
|
||||||
std::vector<std::string> lines;
|
|
||||||
if (!ini.GetLines(section, &lines))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const std::string& line : lines)
|
|
||||||
{
|
|
||||||
if (!line.empty())
|
|
||||||
{
|
|
||||||
discList.push_back(line);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void LoadSpeedhacks(const std::string& section, IniFile& ini)
|
static void LoadSpeedhacks(const std::string& section, IniFile& ini)
|
||||||
{
|
{
|
||||||
std::vector<std::string> keys;
|
std::vector<std::string> keys;
|
||||||
@ -190,7 +172,6 @@ void LoadPatches()
|
|||||||
Gecko::SetActiveCodes(gcodes);
|
Gecko::SetActiveCodes(gcodes);
|
||||||
|
|
||||||
LoadSpeedhacks("Speedhacks", merged);
|
LoadSpeedhacks("Speedhacks", merged);
|
||||||
LoadDiscList("DiscList", merged);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ApplyPatches(const std::vector<Patch> &patches)
|
void ApplyPatches(const std::vector<Patch> &patches)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user