diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-08-06 23:13:37 -0400 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-08-06 23:13:42 -0400 |
commit | 91cfe70301bec23099ae27ad70e3da525a573cfe (patch) | |
tree | fa8fbde6661373f7d835f814b09f54f132b99aeb /src/yuzu/game_list.cpp | |
parent | e4422b09b665101ea4e43e3ceddd9fbdbb2c9c4c (diff) |
loader: Add icon and title support to XCI
Diffstat (limited to 'src/yuzu/game_list.cpp')
-rw-r--r-- | src/yuzu/game_list.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 481d91be5..5f47f5a2b 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp @@ -9,6 +9,7 @@ #include <QKeyEvent> #include <QMenu> #include <QThreadPool> +#include <boost/container/flat_map.hpp> #include "common/common_paths.h" #include "common/logging/log.h" #include "common/string_util.h" @@ -458,9 +459,9 @@ void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsign // Use from metadata pool. if (nca_control_map.find(program_id) != nca_control_map.end()) { const auto nca = nca_control_map[program_id]; - auto control_dir = nca->GetSection(0); + const auto control_dir = nca->GetSubdirectories()[0]; - auto nacp_file = control_dir->GetFile("control.nacp"); + const auto nacp_file = control_dir->GetFile("control.nacp"); FileSys::NACP nacp(nacp_file); name = nacp.GetApplicationName(); |