diff --git a/include/log.h b/include/log.h index 62bbaf9..0726dac 100644 --- a/include/log.h +++ b/include/log.h @@ -2,7 +2,7 @@ #define _VITALBUM_LOG_H_ namespace Log { - int OpenHande(void); + int OpenHandle(void); int CloseHandle(void); int Debug(const char *format, ...); } diff --git a/source/log.cpp b/source/log.cpp index 2310759..4237212 100644 --- a/source/log.cpp +++ b/source/log.cpp @@ -7,7 +7,7 @@ namespace Log { SceUID log_handle = 0; - int OpenHande(void) { + int OpenHandle(void) { int ret = 0; if (R_FAILED(ret = log_handle = sceIoOpen("ux0:/vpk/debug.log", SCE_O_WRONLY | SCE_O_CREAT | SCE_O_APPEND, 0777))) diff --git a/source/main.cpp b/source/main.cpp index f212e99..1dcc152 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -2,7 +2,7 @@ #include #include "gui.h" -#include "log.h" +//#include "log.h" #include "textures.h" #include "utils.h" @@ -66,6 +66,8 @@ namespace Services { } void Init(void) { + //Log::OpenHandle(); + // Initalize vitaGL and imGui contexts vglInit(0x100000); ImGui::CreateContext(); @@ -76,7 +78,6 @@ namespace Services { ImGui_ImplVitaGL_GamepadUsage(true); Textures::Init(); - Log::OpenHande(); Utils::InitAppUtil(); SCE_CTRL_ENTER = Utils::GetEnterButton(); SCE_CTRL_CANCEL = Utils::GetCancelButton(); @@ -84,19 +85,12 @@ namespace Services { void Exit(void) { // Clean up - Log::Debug("Before Utils::EndAppUtil();\n"); Utils::EndAppUtil(); - Log::Debug("Before Textures::Exit();\n"); - //Log::CloseHandle(); Textures::Exit(); - Log::Debug("Before ImGui_ImplVitaGL_Shutdown();\n"); ImGui_ImplVitaGL_Shutdown(); - Log::Debug("Before ImGui::DestroyContext();\n"); ImGui::DestroyContext(); - Log::Debug("Before vglEnd();\n"); vglEnd(); - Log::Debug("Before Log::CloseHandle();\n"); - Log::CloseHandle(); + //Log::CloseHandle(); } }