summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/ConvertDialog.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-10-03 21:47:04 +0200
committerGitHub <noreply@github.com>2021-10-03 21:47:04 +0200
commit33ffc7aa6666d9b73ad3a45a00354150484f8332 (patch)
tree6792b6f856419fa8e58a33453277d380780aa4a8 /Source/Core/DolphinQt/ConvertDialog.cpp
parent207c931a04c8e2629a735bc2b3f36b5c89365ca7 (diff)
parent9bb85ca70619f08d9349f798f9c204c08df5b2d9 (diff)
Merge pull request #10146 from JosJuice/nkit-convert-warning
DolphinQt/Android: Add warning when converting NKit files
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)