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

Method removeExtdataFolder

3ds/source/configuration.cpp:487–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487void Configuration::removeExtdataFolder(u64 id, size_t index)
488{
489 auto it = mAdditionalExtdataFolders.find(id);
490 if (it == mAdditionalExtdataFolders.end() || index >= it->second.size()) {
491 return;
492 }
493 it->second.erase(it->second.begin() + index);
494 if (it->second.empty()) {
495 mAdditionalExtdataFolders.erase(it);
496 }
497 (*mJson)["additional_extdata_folders"] = folderMapToJson(mAdditionalExtdataFolders);
498 mDirty = true;
499}

Callers 1

updateMethod · 0.80

Calls 7

folderMapToJsonFunction · 0.85
findMethod · 0.80
endMethod · 0.45
sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected