Skip to content

Commit

Permalink
Remove all traces of logging until debug builds are introduced
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel16 committed Jul 8, 2020
1 parent 92140d0 commit b5aab4e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion include/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define _VITALBUM_LOG_H_

namespace Log {
int OpenHande(void);
int OpenHandle(void);
int CloseHandle(void);
int Debug(const char *format, ...);
}
Expand Down
2 changes: 1 addition & 1 deletion source/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
14 changes: 4 additions & 10 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <vitaGL.h>

#include "gui.h"
#include "log.h"
//#include "log.h"
#include "textures.h"
#include "utils.h"

Expand Down Expand Up @@ -66,6 +66,8 @@ namespace Services {
}

void Init(void) {
//Log::OpenHandle();

// Initalize vitaGL and imGui contexts
vglInit(0x100000);
ImGui::CreateContext();
Expand All @@ -76,27 +78,19 @@ namespace Services {
ImGui_ImplVitaGL_GamepadUsage(true);

Textures::Init();
Log::OpenHande();
Utils::InitAppUtil();
SCE_CTRL_ENTER = Utils::GetEnterButton();
SCE_CTRL_CANCEL = Utils::GetCancelButton();
}

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();
}
}

Expand Down

0 comments on commit b5aab4e

Please sign in to comment.