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

Method savOpenExtdata

3ds/source/script/scripthost.cpp:217–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 }
216
217 int savOpenExtdata(u32 extdataId) override
218 {
219 const int slot = freeSlot();
220 if (slot < 0) {
221 return -2;
222 }
223
224 FS_Archive archive;
225 const Result res = Archive::extdata(&archive, extdataId);
226 if (R_FAILED(res)) {
227 return (int)res;
228 }
229
230 // Ordinary extdata, just reached by id instead of through a Title:
231 // no commit and no secure value, like savOpen's kind == 1 path.
232 mSlots[slot].arch = ArchiveHandle::fromFs(archive);
233 mSlots[slot].commitable = false;
234 mSlots[slot].uniqueId = 0;
235 return slot;
236 }
237
238 int savOpenSystem(u32 saveId) override
239 {

Callers 1

ckpt_sav_open_extdataFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected