Dump certs.db

This is used to build CIAs. Currently only retail certs are supported
This commit is contained in:
zhupengfei
2020-08-03 21:56:48 +08:00
parent 10122a376c
commit 900275bffd
4 changed files with 13 additions and 2 deletions
+8 -1
View File
@@ -29,6 +29,13 @@ else
goto Exit
end
# === certs.db
if chk $[RDTYPE] "devkit"
echo "WARNING: \nDev kit detected. \nCIA building will not be usable."
else
cp -w -n "1:/dbs/certs.db" $[OUT]/certs.db
end
# === Safe mode firm
if not find $[OUT]/firm NULL
mkdir $[OUT]/firm
@@ -159,7 +166,7 @@ else
end
# === Write version
dumptxt $[OUT]/version.txt 1
dumptxt $[OUT]/version.txt 2
set PREVIEW_MODE "threeSD Dumper\nby zhaowenlan1779\n \nSuccess!"
echo "Successfully dumped necessary\nfiles for threeSD."
+1
View File
@@ -39,3 +39,4 @@
#define MOVABLE_SED "movable.sed"
#define SEED_DB "seeddb.bin"
#define AES_KEYS "aes_keys.txt"
#define CERTS_DB "certs.db"
+1
View File
@@ -901,6 +901,7 @@ std::vector<Config> LoadPresetConfig(std::string mount_point) {
LOAD_DATA(movable_sed_path, MOVABLE_SED);
LOAD_DATA(bootrom_path, BOOTROM9);
LOAD_DATA(certs_db_path, CERTS_DB);
LOAD_DATA(safe_mode_firm_path, "firm/");
LOAD_DATA(seed_db_path, SEED_DB);
LOAD_DATA(secret_sector_path, SECRET_SECTOR);
+3 -1
View File
@@ -68,6 +68,8 @@ struct Config {
std::string movable_sed_path; ///< Path to movable.sed
std::string bootrom_path; ///< Path to bootrom (boot9.bin) (Sysdata 0)
std::string certs_db_path; ///< Path to certs.db. Used while building CIA.
// The following system files are optional for importing and are only copied so that Citra
// will be able to decrypt imported encrypted ROMs.
@@ -84,7 +86,7 @@ struct Config {
};
// Version of the current dumper.
constexpr int CurrentDumperVersion = 1;
constexpr int CurrentDumperVersion = 2;
class SDMCFile;
class NCCHContainer;