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

@ -34,4 +34,12 @@ void Emulator::runFrame() {
for (u32 i = 0; i < freq; i += 2) {
step();
}
}
bool Emulator::loadELF(std::filesystem::path& path) {
std::optional<u32> entrypoint = memory.loadELF(path);
if (!entrypoint.has_value())
return false;
Helpers::panic("Entrypoint: %08X\n", entrypoint.value());
}