mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-27 21:42:40 +00:00
Kill off some usages of c_str.
Also changes some function params, but this is ok. Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
This commit is contained in:
parent
dccc6d8b47
commit
a82675b7d5
170 changed files with 812 additions and 704 deletions
|
@ -47,14 +47,13 @@ std::vector<Patch> onFrame;
|
|||
std::map<u32, int> speedHacks;
|
||||
std::vector<std::string> discList;
|
||||
|
||||
void LoadPatchSection(const char *section, std::vector<Patch>& patches,
|
||||
IniFile& globalIni, IniFile& localIni)
|
||||
void LoadPatchSection(const std::string& section, std::vector<Patch>& patches, IniFile& globalIni, IniFile& localIni)
|
||||
{
|
||||
// Load the name of all enabled patches
|
||||
std::string enabledSectionName = std::string(section) + "_Enabled";
|
||||
std::string enabledSectionName = section + "_Enabled";
|
||||
std::vector<std::string> enabledLines;
|
||||
std::set<std::string> enabledNames;
|
||||
localIni.GetLines(enabledSectionName.c_str(), enabledLines);
|
||||
localIni.GetLines(enabledSectionName, enabledLines);
|
||||
for (const std::string& line : enabledLines)
|
||||
{
|
||||
if (line.size() != 0 && line[0] == '$')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue