basic sdl window init

This commit is contained in:
georgemoralis 2023-09-12 19:39:08 +03:00
parent c2453f6ae9
commit 8954a35eec
5 changed files with 73 additions and 10 deletions

View file

@ -46,11 +46,12 @@ int main(int argc, char* argv[])
logging::init(true); // init logging
auto width = Config::getScreenWidth();
auto height = Config::getScreenHeight();
Emulator::emuInit(width, height);
HLE::Libs::Graphics::VideoOut::videoOutInit(width, height);
Emulator::emuInit();
Lib::InitThreads();
const char* const path = argv[1]; // argument 1 is the path of self file to boot
auto* linker = Singleton<Linker>::Instance();
HLE::Libs::Init_HLE_Libs(linker->getHLESymbols());
auto *module =linker->LoadModule(path);//load main executable