summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-25 17:50:15 +0200
committerZach Hilman <zachhilman@gmail.com>2018-09-04 20:28:41 +0200
commit58473309a08979d657dc09d5594833791e5c920c (patch)
treeb722865fa4b3a2ea40c3f34cc82b039d5a716eab
parentregistration: Add support for installing NSP files (diff)
downloadyuzu-58473309a08979d657dc09d5594833791e5c920c.tar
yuzu-58473309a08979d657dc09d5594833791e5c920c.tar.gz
yuzu-58473309a08979d657dc09d5594833791e5c920c.tar.bz2
yuzu-58473309a08979d657dc09d5594833791e5c920c.tar.lz
yuzu-58473309a08979d657dc09d5594833791e5c920c.tar.xz
yuzu-58473309a08979d657dc09d5594833791e5c920c.tar.zst
yuzu-58473309a08979d657dc09d5594833791e5c920c.zip
-rw-r--r--src/core/CMakeLists.txt4
-rw-r--r--src/yuzu/game_list.cpp2
-rw-r--r--src/yuzu/main.cpp3
3 files changed, 7 insertions, 2 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index a74270a0f..54afa6a87 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -49,6 +49,8 @@ add_library(core STATIC
file_sys/savedata_factory.h
file_sys/sdmc_factory.cpp
file_sys/sdmc_factory.h
+ file_sys/submission_package.cpp
+ file_sys/submission_package.h
file_sys/vfs.cpp
file_sys/vfs.h
file_sys/vfs_concat.cpp
@@ -359,6 +361,8 @@ add_library(core STATIC
loader/nro.h
loader/nso.cpp
loader/nso.h
+ loader/nsp.cpp
+ loader/nsp.h
loader/xci.cpp
loader/xci.h
memory.cpp
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp
index 71953cee3..3e2a5976b 100644
--- a/src/yuzu/game_list.cpp
+++ b/src/yuzu/game_list.cpp
@@ -432,7 +432,7 @@ void GameList::LoadInterfaceLayout() {
item_model->sort(header->sortIndicatorSection(), header->sortIndicatorOrder());
}
-const QStringList GameList::supported_file_extensions = {"nso", "nro", "nca", "xci"};
+const QStringList GameList::supported_file_extensions = {"nso", "nro", "nca", "xci", "nsp"};
static bool HasSupportedFileExtension(const std::string& file_name) {
const QFileInfo file = QFileInfo(QString::fromStdString(file_name));
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index c4eda4bab..e7722cf95 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -746,7 +746,8 @@ void GMainWindow::OnMenuLoadFolder() {
void GMainWindow::OnMenuInstallToNAND() {
const QString file_filter =
- tr("Installable Switch File (*.nca *.xci);;Nintendo Content Archive (*.nca);;NX Cartridge "
+ tr("Installable Switch File (*.nca *.nsp *.xci);;Nintendo Content Archive "
+ "(*.nca);;Nintendo Submissions Package (*.nsp);;NX Cartridge "
"Image (*.xci)");
QString filename = QFileDialog::getOpenFileName(this, tr("Install File"),
UISettings::values.roms_path, file_filter);