diff options
| author | Stevoisiak <Stevoisiak@gmail.com> | 2015-03-19 22:37:41 -0400 |
|---|---|---|
| committer | Steven V <Stevoisiak@gmail.com> | 2015-07-05 15:45:17 -0400 |
| commit | c2bbcdd16c015e47a18cd0193fca69c821108685 (patch) | |
| tree | 2eede818c282942f6d93ef17305cdb52a3613d12 /Source/Core | |
| parent | 134a18fdad7f963153c60c8d1a510e544c8d1777 (diff) | |
Read custom titles from wiitdb.txt if titles.txt is not found
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinWX/GameListCtrl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp index 1b967a5f7c..5983238240 100644 --- a/Source/Core/DolphinWX/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/GameListCtrl.cpp @@ -388,9 +388,16 @@ void CGameListCtrl::InsertItemInReportView(long _Index) wxString name = StrToWxStr(rISOFile.GetName()); + // Attempt to load game titles from titles.txt + // http://www.gametdb.com/Wii/Downloads std::ifstream titlestxt; OpenFStream(titlestxt, File::GetUserPath(D_LOAD_IDX) + "titles.txt", std::ios::in); + if (!titlestxt.is_open()) + { + OpenFStream(titlestxt, File::GetUserPath(D_LOAD_IDX) + "wiitdb.txt", std::ios::in); + } + if (titlestxt.is_open() && rISOFile.GetUniqueID().size() > 3) { while (!titlestxt.eof()) |
