From: chaoskagami Date: Sun, 3 Jul 2016 13:54:17 +0000 (-0400) Subject: Fix up logger path for skeith builds, move it to the header X-Git-Tag: v0.2.0~33 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=b3862b9fdf481af9c83c1eb6a1fbc4506a741bee;p=corbenik%2Fcorbenik.git Fix up logger path for skeith builds, move it to the header --- diff --git a/external/loader/source/logger.c b/external/loader/source/logger.c index 6555cdb..76a8836 100644 --- a/external/loader/source/logger.c +++ b/external/loader/source/logger.c @@ -27,7 +27,7 @@ openLogger() if (logger_is_initd) return; - r = fileOpen(&log_file_hdl, ARCHIVE_SDMC, "/corbenik/loader.log", FS_OPEN_WRITE | FS_OPEN_READ | FS_OPEN_CREATE); + r = fileOpen(&log_file_hdl, ARCHIVE_SDMC, PATH_LOADERLOG, FS_OPEN_WRITE | FS_OPEN_READ | FS_OPEN_CREATE); if (R_FAILED(r)) { logger_is_initd = -1; diff --git a/source/patch_format.h b/source/patch_format.h index 76b26e0..a38ea83 100644 --- a/source/patch_format.h +++ b/source/patch_format.h @@ -91,6 +91,9 @@ #define PATH_ALT_SLOT0X11KEY96 "/slot0x11key96.bin" // Hey, your perrogative, buddy. I like cleaned up // paths. +#define PATH_BOOTLOG PATH_DATA "/boot.log" +#define PATH_LOADERLOG PATH_DATA "/boot.log" + #define PATCH_FLAG_REQUIRE (1 << 0) // Force enable patch unless 'Unsafe Options' is checked. #define PATCH_FLAG_DEVMODE (1 << 1) // Require 'Developer Options' to be checked. #define PATCH_FLAG_NOABORT (1 << 2) // Don't abort on error. diff --git a/source/std/draw.c b/source/std/draw.c index f6bd45d..548321c 100644 --- a/source/std/draw.c +++ b/source/std/draw.c @@ -245,7 +245,7 @@ void dump_log(unsigned int force) { if (log_size == 0) return; - FILE *f = fopen(PATH_CFW "/boot.log", "w"); + FILE *f = fopen(PATH_BOOTLOG, "w"); fseek(f, 0, SEEK_END); fwrite(log_buffer, 1, log_size, f);