feat: explode runtime in folder to be more easy to place recompiled code

This commit is contained in:
Ran-j
2025-11-29 01:37:48 -03:00
parent 3f0e33d01c
commit d33bbe2189
7 changed files with 9 additions and 6 deletions
-34
View File
@@ -1,34 +0,0 @@
#include "ps2_runtime.h"
#include "register_functions.h"
#include <iostream>
#include <string>
int main(int argc, char *argv[])
{
if (argc < 2)
{
std::cout << "Usage: " << argv[0] << " <elf_file>" << std::endl;
return 1;
}
std::string elfPath = argv[1];
PS2Runtime runtime;
if (!runtime.initialize("ps2xRuntime (Raylib host)"))
{
std::cerr << "Failed to initialize PS2 runtime" << std::endl;
return 1;
}
registerAllFunctions(runtime);
if (!runtime.loadELF(elfPath))
{
std::cerr << "Failed to load ELF file: " << elfPath << std::endl;
return 1;
}
runtime.run();
return 0;
}