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

Method savList

3ds/source/script/scripthost.cpp:362–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360 }
361
362 bool savList(int handle, const std::string& dir, std::vector<HostDirEntry>& out) override
363 {
364 Directory items(mSlots[handle].arch.fs(), StringUtils::UTF8toUTF16(dir.c_str()));
365 if (!items.good()) {
366 return false;
367 }
368 for (size_t i = 0, sz = items.size(); i < sz; i++) {
369 out.push_back({StringUtils::UTF16toUTF8(items.entry(i)), items.folder(i)});
370 }
371 return true;
372 }
373
374 int savCommit(int handle) override
375 {

Callers 1

ckpt_sav_listFunction · 0.45

Calls 6

fsMethod · 0.80
goodMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
entryMethod · 0.45
folderMethod · 0.45

Tested by

no test coverage detected