Files
LightningMods 36ca31d21b ItemzCore version: 1.4-V-2024-01-23T18:42:41
- Fixed dumping DLCs and AC w/p data
- Added an Install all PKGs option for folders with more than 1 PKG
- Installing a PKG will no longer boot you back to settings
- Carried over some improvements from the PS5 version of IF
- Replaced reg. vectors for ThreadSafeVectors
- Added the Chinese lang files
- Fixed a bug that would cause the Utility thread to deadlock
- Fixed a Bug that caused the daemon not to give a backtrace on 9.00
2024-01-23 18:56:00 -05:00

43 lines
1.3 KiB
C++

// Copyright (c) 2021 Al Azif
// License: GPLv3
#include "common.hpp"
#include "dump.hpp"
#include "dumper.h"
#include <iostream>
#include <unistd.h>
#include "lang.h"
#include "pfs.hpp"
#define DUMPER_LOG "/user/app/ITEM00001/logs/if_dumper.log"
bool Dumper(const std::string &dump_path, const std::string &title_id, Dump_Options opt, const std::string &title)
{
/*-- INIT LOGGING FUNCS --*/
unlink(DUMPER_LOG);
log_set_quiet(false);
log_set_level(LOG_DEBUG);
FILE* fp = fopen(DUMPER_LOG, "w");
if(fp != NULL)
log_add_fp(fp, LOG_DEBUG);
log_info("LibDumper Started with path: %s tid: %s title: %s opt: %i", dump_path.c_str(), title_id.c_str(), title.c_str(), opt);
if (!LoadDumperLangs(DumperGetLang())) {
log_debug("Failed to load the language, loading the backup");
if (!LoadDumperLangs(0x01)) {
log_debug("Failed to load the backup, loading the embedded");
if(!load_dumper_embdded_eng()){
log_debug("Failed to load the embedded, exiting");
return false;
}
}
else
log_debug("Loaded the backup, lang %i failed to load", DumperGetLang());
}
pfs::dump_op = opt;
return (opt == ADDITIONAL_CONTENT_DATA) ? dump::dump_dlc(dump_path, title_id) : dump::__dump(dump_path, title_id, opt, title);
}