MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / titleBackupPath

Method titleBackupPath

3ds/source/script/scripthost.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 int titleIndexOf(uint64_t id) override { return TitleCatalog::get().indexById((u64)id, BackupKind::Save); }
91
92 std::string titleBackupPath(int idx, int kind) override
93 {
94 if (idx < 0 || idx >= titleCount()) {
95 return "";
96 }
97 Title title;
98 TitleCatalog::get().getTitle(title, idx, BackupKind::Save);
99 BackupTarget target = title.backup(kind == 0 ? BackupKind::Save : BackupKind::Extdata);
100 return StringUtils::UTF16toUTF8(target.rootPath());
101 }
102
103 int savOpen(int titleIdx, int kind) override
104 {

Callers 1

ckpt_title_backup_pathFunction · 0.45

Calls 4

getFunction · 0.85
rootPathMethod · 0.80
getTitleMethod · 0.45
backupMethod · 0.45

Tested by

no test coverage detected