summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/ConvertDialog.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2021-10-02 11:09:36 +0200
committerJosJuice <josjuice@gmail.com>2021-10-02 11:09:36 +0200
commit9bb85ca70619f08d9349f798f9c204c08df5b2d9 (patch)
treedd52f4215e053f7a50e2529dd7cadca309bee01f /Source/Core/DolphinQt/ConvertDialog.cpp
parentbb367394cfd3a07c981b843418ff227ac1d9e2ba (diff)
DolphinQt/Android: Add warning when converting NKit files
Yes, that's right! It's time to add even more NKit warnings, because users still don't understand what NKit is or how it works! More specifically, some users seem to be under the impression that converting an NKit file to for instance RVZ using Dolphin's convert feature will result in a normal RVZ file, when it in fact results in an NKit RVZ file (since NKit is not a container format in the sense that GCZ/WIA/RVZ/WBFS/CISO is, but rather a kind of trimmed ISO). I can hardly blame users for not knowing this, because it's not intuitive unless you know the technical details of how NKit works.
Diffstat (limited to 'Source/Core/DolphinQt/ConvertDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/ConvertDialog.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/ConvertDialog.cpp b/Source/Core/DolphinQt/ConvertDialog.cpp
index b7bf614291..097ca87a39 100644
--- a/Source/Core/DolphinQt/ConvertDialog.cpp
+++ b/Source/Core/DolphinQt/ConvertDialog.cpp
@@ -329,6 +329,21 @@ void ConvertDialog::Convert()
}
}
+ if (std::any_of(m_files.begin(), m_files.end(), std::mem_fn(&UICommon::GameFile::IsNKit)))
+ {
+ if (!ShowAreYouSureDialog(
+ tr("Dolphin can't convert NKit files to non-NKit files. Converting an NKit file in "
+ "Dolphin will result in another NKit file.\n"
+ "\n"
+ "If you want to convert an NKit file to a non-NKit file, you can use the same "
+ "program as you originally used when converting the file to the NKit format.\n"
+ "\n"
+ "Do you want to continue anyway?")))
+ {
+ return;
+ }
+ }
+
QString extension;
QString filter;
switch (format)