mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
19 lines
No EOL
530 B
C++
19 lines
No EOL
530 B
C++
#include "emulator.hpp"
|
|
#include "gl3w.h"
|
|
|
|
int main (int argc, char *argv[]) {
|
|
Emulator emu;
|
|
if (gl3wInit()) {
|
|
Helpers::panic("Failed to initialize OpenGL");
|
|
}
|
|
|
|
emu.initGraphicsContext();
|
|
|
|
auto romPath = std::filesystem::current_path() / (argc > 1 ? argv[1] : "Pokemon Rumble Blast (USA).3ds");
|
|
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();
|
|
} |