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

Method titleIndexOf

3ds/source/script/scripthost.cpp:130–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 int titleIndexOf(uint64_t id) override
131 {
132 const int save = TitleCatalog::get().indexById((u64)id, BackupKind::Save);
133 if (save >= 0) {
134 return save;
135 }
136
137 refreshExtras();
138 for (size_t i = 0; i < mExtras.size(); i++) {
139 if (mExtras[i].id == (u64)id) {
140 return mSaveCount + (int)i;
141 }
142 }
143 return -1;
144 }
145
146 std::string titleBackupPath(int idx, int kind) override
147 {

Callers 1

ckpt_title_findFunction · 0.45

Calls 3

getFunction · 0.85
indexByIdMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected