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

Method removeExtdataFolder

3ds/source/configuration.cpp:541–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541void Configuration::removeExtdataFolder(u64 id, size_t index)
542{
543 auto it = mAdditionalExtdataFolders.find(id);
544 if (it == mAdditionalExtdataFolders.end() || index >= it->second.size()) {
545 return;
546 }
547 it->second.erase(it->second.begin() + index);
548 if (it->second.empty()) {
549 mAdditionalExtdataFolders.erase(it);
550 }
551 (*mJson)["additional_extdata_folders"] = folderMapToJson(mAdditionalExtdataFolders);
552 mDirty = true;
553}

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