mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-04 19:24:48 +12:00
Split panda_sdl and panda_qt
This commit is contained in:
parent
f6634786c1
commit
63e939e98e
3 changed files with 22 additions and 13 deletions
18
src/panda_sdl/main.cpp
Normal file
18
src/panda_sdl/main.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "emulator.hpp"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
Emulator emu;
|
||||
emu.initGraphicsContext();
|
||||
|
||||
if (argc > 1) {
|
||||
auto romPath = std::filesystem::current_path() / argv[1];
|
||||
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());
|
||||
}
|
||||
} else {
|
||||
printf("No ROM inserted! Load a ROM by dragging and dropping it into the emulator window!\n");
|
||||
}
|
||||
|
||||
emu.run();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue