mirror of
https://github.com/joel16/VITAlbum.git
synced 2025-02-20 02:31:37 +00:00
Remove all traces of logging until debug builds are introduced
This commit is contained in:
parent
92140d0ad5
commit
b5aab4e327
@ -2,7 +2,7 @@
|
||||
#define _VITALBUM_LOG_H_
|
||||
|
||||
namespace Log {
|
||||
int OpenHande(void);
|
||||
int OpenHandle(void);
|
||||
int CloseHandle(void);
|
||||
int Debug(const char *format, ...);
|
||||
}
|
||||
|
@ -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)))
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include <vitaGL.h>
|
||||
|
||||
#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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user