Files
P3DS-test/src/main.cpp
2022-09-22 03:46:45 +03:00

17 lines
482 B
C++

#include "emulator.hpp"
#include "gl3w.h"
int main (int argc, char *argv[]) {
Emulator emu;
if (gl3wInit()) {
Helpers::panic("Failed to initialize OpenGL");
}
auto elfPath = std::filesystem::current_path() / (argc > 1 ? argv[1] : "SimplerTri.elf");
if (!emu.loadELF(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());
}
emu.run();
}