Skip to content

Commit

Permalink
STORE Version: 2.4-V-2023-01-02T20:39:45 HOTFIX
Browse files Browse the repository at this point in the history
- Fixed the log not getting deleted
  • Loading branch information
LightningMods committed Jan 3, 2023
1 parent a865cae commit 0f71e71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 1 addition & 16 deletions Store/source/common_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int initGL_for_the_store(bool reload_apps, int ref_pages)

unlink(STORE_LOG);
//old log
unlink("/user/app/NPXS39041/logs/log.txt");
unlink("/user/app/NPXS39041/logs/store.log");
//Keep people from backing up the Sig file
unlink("/user/app/NPXS39041/homebrew.elf.sig");

Expand All @@ -113,18 +113,6 @@ int initGL_for_the_store(bool reload_apps, int ref_pages)
rmtree("/user/app/NPXS39041/downloads");
mkdir("/user/app/NPXS39041/downloads", 0777);


//USB LOGGING
/* if (strstr(usbpath(), "/mnt/usb"))
{
sprintf(&tmp[0], "%s/Store-log.txt", usbpath());
unlink(tmp);
fp = fopen(tmp, "w");
if(fp != NULL)
log_add_fp(fp, LOG_DEBUG);
}count_availables_json*/
/* -- END OF LOGINIT --*/


log_info("------------------------ Store[GL] Compiled Time: %s @ %s -------------------------", __DATE__, __TIME__);
log_info(" --------------------------- STORE Version: %s -------------------------------", completeVersion);
Expand Down Expand Up @@ -168,12 +156,9 @@ int initGL_for_the_store(bool reload_apps, int ref_pages)

globalConf.confPad = orbisPadGetConf();

//rif_exp("/user/license/freeIV0002-NPXS39041_00.rif");
mkdir(STORE_APP_PATH "covers", 0777);
mkdir(STORE_APP_PATH "logs", 0777);
mkdir(STORE_APP_PATH "storedata", 0777);
mkdir(STORE_APP_PATH "downloads", 0777);
mkdir(STORE_APP_PATH "covers", 0777);

if (!LoadOptions(get)) msgok(WARNING, (char*)getLangSTR(INI_ERROR));

Expand Down
2 changes: 1 addition & 1 deletion Store/source/sig_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void Exit_App_With_Message(int sig_numb)
//try our best to make the name not always the same
snprintf(&tmp[0], 99, "/mnt/usb%d/Store", usbpath());
mkdir(&tmp[0], 0777);
snprintf(&tmp[0], 99, "%s/Store.log", &tmp[0]);
snprintf(&tmp[0], 99, "%s/store.log", &tmp[0]);

if (touch_file(&tmp[0])) {
log_debug("App crashed writing log to %s", &tmp[0]);
Expand Down

0 comments on commit 0f71e71

Please sign in to comment.