Skip to content

sc_cvars_v1.get_bool

Read one exact allowlisted SQ42 bool; copied 0 or 1, output unchanged on failure.

sco_result (*)(sco_plugin *, const char *, uint32_t, uint32_t *)

Service index

Property Value
Symbol sc_cvars_v1.get_bool
Record ID sc-cvars-v1-get-bool
Service game.cvars
Table sc_cvars_v1
Version macro SC_CVARS_VERSION
Packed table version 65536
Since / availability size >= 16; 1.0
Complete member extent (x64 bytes) 16
Table size (x64 bytes) 16

Header source

sco_result (*get_bool)(sco_plugin* self, const char* name, uint32_t type, uint32_t* out);
Read one exact allowlisted SQ42 bool; copied 0 or 1, output unchanged on failure.

BAD_ARG invalid name/type/output/self or released handle; UNAVAILABLE absent capability/admission/adapter/session; FAILED noncanonical backend bool; CRASHED adapter fault latches restart-required.

Table absent: query_service NOT_FOUND; feature unavailable: UNAVAILABLE.

Live caller handle; copied output; host session-lifetime borrowed table; no allocation transfer.

Game thread only; WRONG_THREAD elsewhere; non-reentrant (FAILED).

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

Refused with FAILED.

No mutation in this table. Stop withdraws discovery and refuses cached calls; fault retains adapter context and prevents restart.

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.h
(*get_bool)
cpp typed-wrapper include/scosdk/game/cvars.hpp
table_->get_bool(self_, name, SC_CVAR_BOOL, &out)
csharp unsupported docs/game/cvars.md
C# and Lua routes are
lua unsupported docs/game/cvars.md
explicitly 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.