From 433330a74ccf8a58a84f2bae0af9ab1f6748f727 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Fri, 7 Jul 2023 04:14:55 +0300 Subject: [PATCH] Add support for .app files --- src/emulator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emulator.cpp b/src/emulator.cpp index 5ea33567..45ff0b7c 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -289,7 +289,7 @@ bool Emulator::loadROM(const std::filesystem::path& path) { return loadELF(path); else if (extension == ".3ds") return loadNCSD(path, ROMType::NCSD); - else if (extension == ".cxi") + else if (extension == ".cxi" || extension == ".app") return loadNCSD(path, ROMType::CXI); else { printf("Unknown file type\n"); @@ -345,4 +345,4 @@ bool Emulator::loadELF(std::ifstream& file) { void Emulator::initGraphicsContext() { gl.reset(); // TODO (For when we have multiple backends): Only do this if we are using OpenGL gpu.initGraphicsContext(); -} \ No newline at end of file +}