Parcourir la source

Merge pull request #415 from Dante38490/master

Loader: Add support for loading NCCH ROMs with the .3DS extension
bunnei il y a 11 ans
Parent
commit
81e255a411
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 1 1
      src/citra_qt/main.cpp
  2. 2 0
      src/core/loader/loader.cpp

+ 1 - 1
src/citra_qt/main.cpp

@@ -179,7 +179,7 @@ void GMainWindow::BootGame(std::string filename)
 
 void GMainWindow::OnMenuLoadFile()
 {
-    QString filename = QFileDialog::getOpenFileName(this, tr("Load File"), QString(), tr("3DS executable (*.3dsx *.elf *.axf *.bin *.cci *.cxi)"));
+    QString filename = QFileDialog::getOpenFileName(this, tr("Load File"), QString(), tr("3DS executable (*.3ds *.3dsx *.elf *.axf *.bin *.cci *.cxi)"));
     if (filename.size())
        BootGame(filename.toLatin1().data());
 }

+ 2 - 0
src/core/loader/loader.cpp

@@ -45,6 +45,8 @@ FileType IdentifyFile(const std::string &filename) {
         return FileType::CCI;
     } else if (extension == ".bin") {
         return FileType::BIN;
+    } else if (extension == ".3ds") {
+        return FileType::CCI;
     } else if (extension == ".3dsx") {
         return FileType::THREEDSX;
     }