mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
17 lines
486 B
C++
17 lines
486 B
C++
#include "panda_sdl/frontend_sdl.hpp"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
FrontendSDL frontend;
|
|
|
|
if (argc > 1) {
|
|
auto romPath = std::filesystem::current_path() / argv[1];
|
|
if (!frontend.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());
|
|
}
|
|
} else {
|
|
printf("No ROM inserted! Load a ROM by dragging and dropping it into the emulator window!\n");
|
|
}
|
|
|
|
frontend.run();
|
|
}
|