Skip to content

Commit

Permalink
Add support for .ncch files
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Nov 18, 2024
1 parent b85dba2 commit 4629314
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Simply drag and drop a ROM to the executable if supported, or invoke the executa
<br>
Panda3DS can load ROMs in the following formats:
- .3ds/.cci
- .cxi/.app
- .cxi/.app/.ncch
- .elf/.axf
- .3dsx

Expand Down
2 changes: 1 addition & 1 deletion src/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ bool Emulator::loadROM(const std::filesystem::path& path) {
success = loadELF(path);
else if (extension == ".3ds" || extension == ".cci")
success = loadNCSD(path, ROMType::NCSD);
else if (extension == ".cxi" || extension == ".app")
else if (extension == ".cxi" || extension == ".app" || extension == ".ncch")
success = loadNCSD(path, ROMType::CXI);
else if (extension == ".3dsx")
success = load3DSX(path);
Expand Down
2 changes: 1 addition & 1 deletion src/panda_qt/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void MainWindow::swapEmuBuffer() {
void MainWindow::selectROM() {
auto path = QFileDialog::getOpenFileName(
this, tr("Select 3DS ROM to load"), QString::fromStdU16String(emu->getConfig().defaultRomPath.u16string()),
tr("Nintendo 3DS ROMs (*.3ds *.cci *.cxi *.app *.3dsx *.elf *.axf)")
tr("Nintendo 3DS ROMs (*.3ds *.cci *.cxi *.app *.ncch *.3dsx *.elf *.axf)")
);

if (!path.isEmpty()) {
Expand Down

0 comments on commit 4629314

Please sign in to comment.