mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-07 08:49:07 +00:00
Dump certs.db
This is used to build CIAs. Currently only retail certs are supported
This commit is contained in:
Vendored
+8
-1
@@ -29,6 +29,13 @@ else
|
|||||||
goto Exit
|
goto Exit
|
||||||
end
|
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
|
# === Safe mode firm
|
||||||
if not find $[OUT]/firm NULL
|
if not find $[OUT]/firm NULL
|
||||||
mkdir $[OUT]/firm
|
mkdir $[OUT]/firm
|
||||||
@@ -159,7 +166,7 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
# === Write version
|
# === Write version
|
||||||
dumptxt $[OUT]/version.txt 1
|
dumptxt $[OUT]/version.txt 2
|
||||||
|
|
||||||
set PREVIEW_MODE "threeSD Dumper\nby zhaowenlan1779\n \nSuccess!"
|
set PREVIEW_MODE "threeSD Dumper\nby zhaowenlan1779\n \nSuccess!"
|
||||||
echo "Successfully dumped necessary\nfiles for threeSD."
|
echo "Successfully dumped necessary\nfiles for threeSD."
|
||||||
|
|||||||
@@ -39,3 +39,4 @@
|
|||||||
#define MOVABLE_SED "movable.sed"
|
#define MOVABLE_SED "movable.sed"
|
||||||
#define SEED_DB "seeddb.bin"
|
#define SEED_DB "seeddb.bin"
|
||||||
#define AES_KEYS "aes_keys.txt"
|
#define AES_KEYS "aes_keys.txt"
|
||||||
|
#define CERTS_DB "certs.db"
|
||||||
|
|||||||
@@ -901,6 +901,7 @@ std::vector<Config> LoadPresetConfig(std::string mount_point) {
|
|||||||
|
|
||||||
LOAD_DATA(movable_sed_path, MOVABLE_SED);
|
LOAD_DATA(movable_sed_path, MOVABLE_SED);
|
||||||
LOAD_DATA(bootrom_path, BOOTROM9);
|
LOAD_DATA(bootrom_path, BOOTROM9);
|
||||||
|
LOAD_DATA(certs_db_path, CERTS_DB);
|
||||||
LOAD_DATA(safe_mode_firm_path, "firm/");
|
LOAD_DATA(safe_mode_firm_path, "firm/");
|
||||||
LOAD_DATA(seed_db_path, SEED_DB);
|
LOAD_DATA(seed_db_path, SEED_DB);
|
||||||
LOAD_DATA(secret_sector_path, SECRET_SECTOR);
|
LOAD_DATA(secret_sector_path, SECRET_SECTOR);
|
||||||
|
|||||||
+3
-1
@@ -68,6 +68,8 @@ struct Config {
|
|||||||
std::string movable_sed_path; ///< Path to movable.sed
|
std::string movable_sed_path; ///< Path to movable.sed
|
||||||
std::string bootrom_path; ///< Path to bootrom (boot9.bin) (Sysdata 0)
|
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
|
// The following system files are optional for importing and are only copied so that Citra
|
||||||
// will be able to decrypt imported encrypted ROMs.
|
// will be able to decrypt imported encrypted ROMs.
|
||||||
|
|
||||||
@@ -84,7 +86,7 @@ struct Config {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Version of the current dumper.
|
// Version of the current dumper.
|
||||||
constexpr int CurrentDumperVersion = 1;
|
constexpr int CurrentDumperVersion = 2;
|
||||||
|
|
||||||
class SDMCFile;
|
class SDMCFile;
|
||||||
class NCCHContainer;
|
class NCCHContainer;
|
||||||
|
|||||||
Reference in New Issue
Block a user