We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f615d9a commit 3d4fc40Copy full SHA for 3d4fc40
1 file changed
app/source/log.cpp
@@ -7,10 +7,15 @@
7
#include "utils.h"
8
9
namespace Log {
10
+ static const char *logPath = "debug.log";
11
+
12
int Error(const char *format, ...) {
13
SceUID log = 0;
14
15
+ // Clear debug logs on start up
16
+ sceIoRemove(logPath);
17
- if (R_SUCCEEDED(log = sceIoOpen("debug.log", PSP_O_WRONLY | PSP_O_CREAT | PSP_O_APPEND, 0777))) {
18
+ if (R_SUCCEEDED(log = sceIoOpen(logPath, PSP_O_WRONLY | PSP_O_CREAT | PSP_O_APPEND, 0777))) {
19
va_list list;
20
char string[256] = {0};
21
0 commit comments