Skip to content

sc_cvars_write_v1.restore_all

Restore this live owner’s first prior values; release only successfully verified leases, no-op OK if none.

sco_result (*)(sco_plugin *)

Service index

Property Value
Symbol sc_cvars_write_v1.restore_all
Record ID sc-cvars-write-v1-restore-all
Service game.cvars_write
Table sc_cvars_write_v1
Version macro SC_CVARS_WRITE_VERSION
Packed table version 65536
Since / availability size >= 24; 1.0
Complete member extent (x64 bytes) 24
Table size (x64 bytes) 24

Header source

sco_result (*restore_all)(sco_plugin* self);
Restore this live owner’s first prior values; release only successfully verified leases, no-op OK if none.

BAD_ARG unknown or released handle; UNAVAILABLE stopped/session-ended/terminal/fault admission; FAILED recursive call. Restore bypasses feature capability loss; engine failure or readback mismatch latches restart-required and retains unrestored leases.

Table absent: query_service NOT_FOUND; operation unavailable: UNAVAILABLE. Explicit restore may ignore feature capability loss for cleanup.

Per-name exclusive live-owner lease; first prior bool retained before mutation; copied scalar inputs; no allocation transfer.

Game thread only; WRONG_THREAD elsewhere; recursive calls refused.

Host-only verified offline engine callbacks; no plugin callbacks.

FAILED; cleanup during active adapter call retains lease and requires restart.

Explicit owner restore, ordinary release via existing spawn dispatcher, game.exit and stop restore first priors; failed restoration retains outstanding leases/context, no retry or replacement until process restart. Loader-retained provider faults skip owner hooks; host session/stop cleanup is independent.

Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.

Language Catalogue status Source evidence / wrapper tokens
c direct include/sc_cvars_write.h
(*restore_all)
cpp typed-wrapper include/scosdk/game/cvars_write.hpp
table_->restore_all(self_)
csharp unsupported docs/game/cvars.md
C# and Lua remain unsupported.
lua unsupported docs/game/cvars.md
C# and Lua remain unsupported.

None identified in the catalogue; this is not proof none can exist.

ABI pins prove layout, not semantic behavior or a live game session.