Skip to content
Snippets Groups Projects
Commit 35a085d5 authored by Dante38490's avatar Dante38490
Browse files

Add support load 3DS room

parent 26f31a2d
No related branches found
No related tags found
No related merge requests found
...@@ -179,7 +179,7 @@ void GMainWindow::BootGame(std::string filename) ...@@ -179,7 +179,7 @@ void GMainWindow::BootGame(std::string filename)
void GMainWindow::OnMenuLoadFile() 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()) if (filename.size())
BootGame(filename.toLatin1().data()); BootGame(filename.toLatin1().data());
} }
......
...@@ -45,6 +45,8 @@ FileType IdentifyFile(const std::string &filename) { ...@@ -45,6 +45,8 @@ FileType IdentifyFile(const std::string &filename) {
return FileType::CCI; return FileType::CCI;
} else if (extension == ".bin") { } else if (extension == ".bin") {
return FileType::BIN; return FileType::BIN;
} else if (extension == ".3ds") {
return FileType::CCI;
} else if (extension == ".3dsx") { } else if (extension == ".3dsx") {
return FileType::THREEDSX; return FileType::THREEDSX;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment