qt: Add 'Install to NAND' option to menu

Prompts for title type on NCA files.
This commit is contained in:
Zach Hilman 2018-08-09 21:33:13 -04:00
parent b67e751ccb
commit bfb945c243
5 changed files with 99 additions and 1 deletions

View file

@ -5,6 +5,7 @@
#include <memory>
#include <utility>
#include "common/logging/log.h"
#include "common/string_util.h"
#include "core/core.h"
#include "core/core_timing.h"
#include "core/gdbstub/gdbstub.h"

View file

@ -427,7 +427,7 @@ bool RegisteredCache::RawInstallYuzuMeta(const CNMT& cnmt) {
}
Refresh();
return std::find_if(yuzu_meta.begin(), yuzu_meta.end(),
[&cnmt](const std::pair<const u64, CNMT>& kv) {
[&cnmt](const std::pair<u64, CNMT>& kv) {
return kv.second.GetType() == cnmt.GetType() &&
kv.second.GetTitleID() == cnmt.GetTitleID();
}) != yuzu_meta.end();