Update opengl.hpp, start with ELFs

This commit is contained in:
wheremyfoodat 2022-09-15 14:59:44 +03:00
parent 1a8d563041
commit 51689af51f
8 changed files with 469 additions and 392 deletions

View file

@ -7,5 +7,9 @@ int main (int argc, char *argv[]) {
Helpers::panic("Failed to initialize OpenGL");
}
auto elfPath = std::filesystem::current_path() / (argc > 1 ? argv[1] : "simple_tri.elf");
if (emu.loadELF(elfPath)) {
Helpers::panic("Failed to load ELF file: %s", elfPath.c_str());
}
emu.run();
}