Panda3DS/src/main.cpp
2023-06-28 03:39:04 +03:00

15 lines
No EOL
409 B
C++

#include "emulator.hpp"
int main (int argc, char *argv[]) {
Emulator emu;
emu.initGraphicsContext();
auto romPath = std::filesystem::current_path() / (argc > 1 ? argv[1] : "teapot.elf");
if (!emu.loadROM(romPath)) {
// For some reason just .c_str() doesn't show the proper path
Helpers::panic("Failed to load ROM file: %s", romPath.string().c_str());
}
emu.run();
}