From c2bbcdd16c015e47a18cd0193fca69c821108685 Mon Sep 17 00:00:00 2001 From: Stevoisiak Date: Thu, 19 Mar 2015 22:37:41 -0400 Subject: [PATCH] Read custom titles from wiitdb.txt if titles.txt is not found --- Source/Core/DolphinWX/GameListCtrl.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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())