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

Function ckpt_sav_open_shared

common/script/checkpoint_api.cpp:298–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void ckpt_sav_open_shared(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
299{
300 // A shared archive belongs to the console, not a title, so it is keyed by
301 // id instead of a catalog index. The id crosses the boundary as a 16-hex
302 // string like a title id (picoc has no reliable 64-bit ints); what its
303 // halves mean is the platform's business.
304 const uint64_t id = strtoull(ScriptArgs(Parser, Param, NumArgs, "sav_open_shared").str(0), nullptr, 16);
305 ReturnValue->Val->Integer = host().savOpenShared(id);
306}
307
308void ckpt_sav_read(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
309{

Callers

nothing calls this directly

Calls 3

ScriptArgsClass · 0.85
strMethod · 0.80
savOpenSharedMethod · 0.45

Tested by

no test coverage detected