Add support for .ncch files
This commit is contained in:
@@ -68,7 +68,7 @@ Simply drag and drop a ROM to the executable if supported, or invoke the executa
|
|||||||
<br>
|
<br>
|
||||||
Panda3DS can load ROMs in the following formats:
|
Panda3DS can load ROMs in the following formats:
|
||||||
- .3ds/.cci
|
- .3ds/.cci
|
||||||
- .cxi/.app
|
- .cxi/.app/.ncch
|
||||||
- .elf/.axf
|
- .elf/.axf
|
||||||
- .3dsx
|
- .3dsx
|
||||||
|
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ bool Emulator::loadROM(const std::filesystem::path& path) {
|
|||||||
success = loadELF(path);
|
success = loadELF(path);
|
||||||
else if (extension == ".3ds" || extension == ".cci")
|
else if (extension == ".3ds" || extension == ".cci")
|
||||||
success = loadNCSD(path, ROMType::NCSD);
|
success = loadNCSD(path, ROMType::NCSD);
|
||||||
else if (extension == ".cxi" || extension == ".app")
|
else if (extension == ".cxi" || extension == ".app" || extension == ".ncch")
|
||||||
success = loadNCSD(path, ROMType::CXI);
|
success = loadNCSD(path, ROMType::CXI);
|
||||||
else if (extension == ".3dsx")
|
else if (extension == ".3dsx")
|
||||||
success = load3DSX(path);
|
success = load3DSX(path);
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ void MainWindow::swapEmuBuffer() {
|
|||||||
void MainWindow::selectROM() {
|
void MainWindow::selectROM() {
|
||||||
auto path = QFileDialog::getOpenFileName(
|
auto path = QFileDialog::getOpenFileName(
|
||||||
this, tr("Select 3DS ROM to load"), QString::fromStdU16String(emu->getConfig().defaultRomPath.u16string()),
|
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()) {
|
if (!path.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user