aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/main.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-07-01 16:15:57 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-07-10 00:38:28 -0400
commit7f4d96d87332824643d7a8d3ff0fab7ea771b798 (patch)
tree2d1febc79d0411df29625e2d0d3fc0d0b2954a17 /src/yuzu/main.h
parent4c269e5ced47765f35dbb58afa9fcac8138a1f7c (diff)
Refactor batch installing files
Key issues fixed: - Progress dialog showing up as white/hanging/getting stuck/unresponsive. Key changes: - Progress dialog now shows progress as a function of all files instead of per nca within a file. - Overwrite existing files will overwrite all files in the selection.
Diffstat (limited to 'src/yuzu/main.h')
-rw-r--r--src/yuzu/main.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/yuzu/main.h b/src/yuzu/main.h
index 55d072e96..deea8170d 100644
--- a/src/yuzu/main.h
+++ b/src/yuzu/main.h
@@ -48,6 +48,13 @@ enum class EmulatedDirectoryTarget {
SDMC,
};
+enum class InstallResult {
+ Success,
+ Overwrite,
+ AlreadyExists,
+ Failure,
+};
+
enum class ReinitializeKeyBehavior {
NoWarning,
Warning,
@@ -219,6 +226,10 @@ private slots:
private:
std::optional<u64> SelectRomFSDumpTarget(const FileSys::ContentProvider&, u64 program_id);
+ InstallResult InstallNSPXCI(const QString& filename, bool overwrite_files,
+ QProgressDialog& install_progress);
+ InstallResult InstallNCA(const QString& filename, bool overwrite_files,
+ QProgressDialog& install_progress);
void UpdateWindowTitle(const std::string& title_name = {},
const std::string& title_version = {});
void UpdateStatusBar();
@@ -273,9 +284,6 @@ private:
HotkeyRegistry hotkey_registry;
- // Install to NAND progress dialog
- QProgressDialog* install_progress;
-
protected:
void dropEvent(QDropEvent* event) override;
void dragEnterEvent(QDragEnterEvent* event) override;