mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
Merge pull request #5854 from leoetlino/gameini-names
Config: Fix returned game INI filenames for title IDs
This commit is contained in:
commit
fa0c699cd9
@ -37,12 +37,16 @@ std::vector<std::string> GetGameIniFilenames(const std::string& id, std::optiona
|
||||
if (id.empty())
|
||||
return filenames;
|
||||
|
||||
// INIs that match the system code (unique for each Virtual Console system)
|
||||
filenames.push_back(id.substr(0, 1) + ".ini");
|
||||
// Using the first letter or the 3 letters of the ID only makes sense
|
||||
// if the ID is an actual game ID (which has 6 characters).
|
||||
if (id.length() == 6)
|
||||
{
|
||||
// INIs that match the system code (unique for each Virtual Console system)
|
||||
filenames.push_back(id.substr(0, 1) + ".ini");
|
||||
|
||||
// INIs that match all regions
|
||||
if (id.size() >= 4)
|
||||
// INIs that match all regions
|
||||
filenames.push_back(id.substr(0, 3) + ".ini");
|
||||
}
|
||||
|
||||
// Regular INIs
|
||||
filenames.push_back(id + ".ini");
|
||||
|
Loading…
Reference in New Issue
Block a user