Bonk frontend changes

This commit is contained in:
wheremyfoodat
2023-07-11 02:47:09 +03:00
parent 6ce861624d
commit de2751fb5c
5 changed files with 149 additions and 140 deletions

View File

@@ -5,12 +5,14 @@ int main (int argc, char *argv[]) {
emu.initGraphicsContext();
if(argc > 1) {
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();