mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 23:55:40 +12:00
Merge pull request #77 from wheremyfoodat/wheremyfoodat-patch-2
Add support for .app files
This commit is contained in:
commit
2d004b703b
1 changed files with 2 additions and 2 deletions
|
@ -289,7 +289,7 @@ bool Emulator::loadROM(const std::filesystem::path& path) {
|
||||||
return loadELF(path);
|
return loadELF(path);
|
||||||
else if (extension == ".3ds")
|
else if (extension == ".3ds")
|
||||||
return loadNCSD(path, ROMType::NCSD);
|
return loadNCSD(path, ROMType::NCSD);
|
||||||
else if (extension == ".cxi")
|
else if (extension == ".cxi" || extension == ".app")
|
||||||
return loadNCSD(path, ROMType::CXI);
|
return loadNCSD(path, ROMType::CXI);
|
||||||
else {
|
else {
|
||||||
printf("Unknown file type\n");
|
printf("Unknown file type\n");
|
||||||
|
@ -345,4 +345,4 @@ bool Emulator::loadELF(std::ifstream& file) {
|
||||||
void Emulator::initGraphicsContext() {
|
void Emulator::initGraphicsContext() {
|
||||||
gl.reset(); // TODO (For when we have multiple backends): Only do this if we are using OpenGL
|
gl.reset(); // TODO (For when we have multiple backends): Only do this if we are using OpenGL
|
||||||
gpu.initGraphicsContext();
|
gpu.initGraphicsContext();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue