simplify main (not loading imgui and sdl for the moment)

This commit is contained in:
georgemoralis 2023-06-08 11:58:29 +03:00
parent 66ea5329d2
commit e02c0a9398

View file

@ -26,17 +26,21 @@
#endif #endif
#include "Core/PS4/Linker.h" #include "Core/PS4/Linker.h"
#include "Util/Singleton.h" #include "Util/Singleton.h"
#include <stdio.h>
#include <inttypes.h>
#include <Zydis/Zydis.h>
// Main code // Main code
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
logging::init(true);//init logging logging::init(true);//init logging
const char* const path = argv[1]; //argument 1 is the path of self file to boot const char* const path = "videoout_basic.elf";// argv[1]; //argument 1 is the path of self file to boot
auto* linker = Singleton<Linker>::Instance(); auto* linker = Singleton<Linker>::Instance();
auto *module =linker->LoadModule(path);//load main executable auto *module =linker->LoadModule(path);//load main executable
#if 0
// Setup SDL // Setup SDL
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMEPAD) != 0) if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMEPAD) != 0)
{ {
@ -215,6 +219,7 @@ int main(int argc, char* argv[])
SDL_GL_DeleteContext(gl_context); SDL_GL_DeleteContext(gl_context);
SDL_DestroyWindow(window); SDL_DestroyWindow(window);
SDL_Quit(); SDL_Quit();
#endif
return 0; return 0;
} }