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

Method devPath

switch/source/script/scripthost.cpp:389–396  ·  view source on GitHub ↗

Script paths are archive-absolute ("/file.bin"); build the full stdio path on the slot's device, tolerating a missing leading slash.

Source from the content-addressed store, hash-verified

387 // Script paths are archive-absolute ("/file.bin"); build the full stdio
388 // path on the slot's device, tolerating a missing leading slash.
389 std::string devPath(int handle, const char* path) const
390 {
391 std::string p = path;
392 if (p.empty() || p[0] != '/') {
393 p = "/" + p;
394 }
395 return std::string(mSlots[handle].dev) + ":" + p;
396 }
397
398 SavSlot mSlots[MAX_SAV_HANDLES];
399 };

Callers

nothing calls this directly

Calls 2

stringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected