mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-11-01 04:37:52 +00:00
added ability to load AXF files (same as ELF)
This commit is contained in:
parent
940330c6e1
commit
3c240abf10
2 changed files with 4 additions and 1 deletions
|
@ -142,7 +142,7 @@ void GMainWindow::BootGame(const char* filename)
|
||||||
|
|
||||||
void GMainWindow::OnMenuLoadFile()
|
void GMainWindow::OnMenuLoadFile()
|
||||||
{
|
{
|
||||||
QString filename = QFileDialog::getOpenFileName(this, tr("Load file"), QString(), tr("3DS homebrew (*.elf *.dat *.bin)"));
|
QString filename = QFileDialog::getOpenFileName(this, tr("Load file"), QString(), tr("3DS homebrew (*.elf *.axf *.dat *.bin)"));
|
||||||
if (filename.size())
|
if (filename.size())
|
||||||
BootGame(filename.toLatin1().data());
|
BootGame(filename.toLatin1().data());
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,6 +187,9 @@ FileType IdentifyFile(std::string &filename) {
|
||||||
else if (!strcasecmp(extension.c_str(), ".elf")) {
|
else if (!strcasecmp(extension.c_str(), ".elf")) {
|
||||||
return FILETYPE_CTR_ELF; // TODO(bunnei): Do some filetype checking :p
|
return FILETYPE_CTR_ELF; // TODO(bunnei): Do some filetype checking :p
|
||||||
}
|
}
|
||||||
|
else if (!strcasecmp(extension.c_str(), ".axf")) {
|
||||||
|
return FILETYPE_CTR_ELF; // TODO(bunnei): Do some filetype checking :p
|
||||||
|
}
|
||||||
else if (!strcasecmp(extension.c_str(), ".bin")) {
|
else if (!strcasecmp(extension.c_str(), ".bin")) {
|
||||||
return FILETYPE_CTR_BIN;
|
return FILETYPE_CTR_BIN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue