From e02c0a9398b12b037b6192a2ca57f2a9c4eefedf Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 8 Jun 2023 11:58:29 +0300 Subject: [PATCH] simplify main (not loading imgui and sdl for the moment) --- src/main.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8fdb32ba..d59efd18 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,17 +26,21 @@ #endif #include "Core/PS4/Linker.h" #include "Util/Singleton.h" - +#include +#include +#include // Main code int main(int argc, char* argv[]) { + + 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::Instance(); auto *module =linker->LoadModule(path);//load main executable - +#if 0 // Setup SDL 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_DestroyWindow(window); SDL_Quit(); +#endif return 0; }