{"action":"created","issue":{"url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/2018","labels_url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/2018/labels{/name}","comments_url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/2018/comments","events_url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/2018/events","html_url":"https://github.com/dolphin-emu/dolphin/pull/2018","id":56859357,"number":2018,"title":"Support game INIs that match all regions","user":{"login":"JosJuice","id":6716818,"avatar_url":"https://avatars.githubusercontent.com/u/6716818?v=3","gravatar_id":"","url":"https://api.github.com/users/JosJuice","html_url":"https://github.com/JosJuice","followers_url":"https://api.github.com/users/JosJuice/followers","following_url":"https://api.github.com/users/JosJuice/following{/other_user}","gists_url":"https://api.github.com/users/JosJuice/gists{/gist_id}","starred_url":"https://api.github.com/users/JosJuice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosJuice/subscriptions","organizations_url":"https://api.github.com/users/JosJuice/orgs","repos_url":"https://api.github.com/users/JosJuice/repos","events_url":"https://api.github.com/users/JosJuice/events{/privacy}","received_events_url":"https://api.github.com/users/JosJuice/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":57,"created_at":"2015-02-06T19:53:00Z","updated_at":"2015-02-21T15:13:30Z","closed_at":"2015-02-21T14:47:57Z","pull_request":{"url":"https://api.github.com/repos/dolphin-emu/dolphin/pulls/2018","html_url":"https://github.com/dolphin-emu/dolphin/pull/2018","diff_url":"https://github.com/dolphin-emu/dolphin/pull/2018.diff","patch_url":"https://github.com/dolphin-emu/dolphin/pull/2018.patch"},"body":"There are a lot of game INIs. Too many, in my opinion. Because they're so tiny and many, the space they take up in total on my hard drive is 8.63 MiB, even though the files themselves only are 1.20 MiB in total. Also, when extracting or deleting a newly downloaded dev release, most of the time spent is because of all the game INI files. I thought about some ways to reduce the number of files, like placing all the game INIs in a single ZIP file, or de-duplicating INIs so that only one INI is needed per game instead of one per region. This PR is about the latter. It will reduce the problem, but not get rid of it completely. It should also save time when editing game INIs.\r\n\r\nHow does it work? Basically, instead of having `RSBE01.ini`, `RSBJ01.ini`, `RSBK01.ini` and `RSBP01.ini`, just a `RSB-01.ini` is enough. INIs without region wildcards will work like before, and they will still be needed for INIs that contain things like patches and AR codes. If both a file with a wildcard and a file without a wildcard match the current game, both will be used, and the content of the file without a wildcard will be prioritized if there is a conflict. Note that the code only supports wildcards for the fourth character, not any other characters.\r\nEDIT: [I have changed how this works.](https://github.com/dolphin-emu/dolphin/pull/2018#issuecomment-73382847)\r\n\r\nThis PR doesn't de-duplicate any of the INIs (at least not yet). I could write a little program that detects duplicates and turns them into INIs with wildcards, but I'm wondering how people think the comments on top of the INIs should be handled. Should they contain all game IDs for the game? Should they contain the game ID with a wildcard? Should they contain no game ID at all?"},"comment":{"url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/comments/75375776","html_url":"https://github.com/dolphin-emu/dolphin/pull/2018#issuecomment-75375776","issue_url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/2018","id":75375776,"user":{"login":"JosJuice","id":6716818,"avatar_url":"https://avatars.githubusercontent.com/u/6716818?v=3","gravatar_id":"","url":"https://api.github.com/users/JosJuice","html_url":"https://github.com/JosJuice","followers_url":"https://api.github.com/users/JosJuice/followers","following_url":"https://api.github.com/users/JosJuice/following{/other_user}","gists_url":"https://api.github.com/users/JosJuice/gists{/gist_id}","starred_url":"https://api.github.com/users/JosJuice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosJuice/subscriptions","organizations_url":"https://api.github.com/users/JosJuice/orgs","repos_url":"https://api.github.com/users/JosJuice/repos","events_url":"https://api.github.com/users/JosJuice/events{/privacy}","received_events_url":"https://api.github.com/users/JosJuice/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T15:13:30Z","updated_at":"2015-02-21T15:13:30Z","body":"I'm still pretty sure I deleted them... Anyway, I'm away over the weekend with only my phone, so I can't send any files until Monday."}}