mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-15 19:57:08 +12:00
Detect ROM format
This commit is contained in:
parent
bef634114d
commit
7ba5c5a1bc
3 changed files with 19 additions and 5 deletions
|
@ -9,10 +9,10 @@ int main (int argc, char *argv[]) {
|
|||
|
||||
emu.initGraphicsContext();
|
||||
|
||||
auto elfPath = std::filesystem::current_path() / (argc > 1 ? argv[1] : "sm64.elf");
|
||||
if (!emu.loadELF(elfPath)) {
|
||||
auto elfPath = std::filesystem::current_path() / (argc > 1 ? argv[1] : "Metroid2.3ds");
|
||||
if (!emu.loadROM(elfPath)) {
|
||||
// For some reason just .c_str() doesn't show the proper path
|
||||
Helpers::panic("Failed to load ELF file: %s", elfPath.string().c_str());
|
||||
Helpers::panic("Failed to load ROM file: %s", elfPath.string().c_str());
|
||||
}
|
||||
|
||||
emu.run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue