Script::SetMovieSubtitles
function · glue · orchestration
- Address
0x46db80· 56 bytes, up to0x46dbb7- Signature
int __fastcall (lua_State *L)- Meaning
- Sets the movieSubtitle CVar to 1 or 0 by a flag argument read by 0x6f1c10, default 1
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- glue/script#movie-resolution-and-subtitles
Finding: Movie resolution and subtitles in glue: the script functions
GetMovieResolution (0x46cf10) scans the gxResolution CVar's string as "%dx%d" and returns
the width as a number; without a leading integer the width slot is never written, and the result
is whatever the stack held. GetMovieSubtitles (0x46dbc0) returns the flag movieSubtitle ≠ 0.
SetMovieSubtitles (0x46db80) sets movieSubtitle to "1" or "0" by its argument, read by
the flag reader 0x6f1c10 with default 1:
| argument | reads as |
|---|---|
| absent, light userdata, table, function, userdata, thread | the default |
| nil | false |
| boolean | its value |
| number | its __ftol nonzero, so 0.5 is false |
string starting 0, F, f, N or n | false |
string starting 1 to 9, T, t, Y or y | true |
| any other string | false for off, disabled; true for on, enabled; else the default |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- CVar::Set cvar
- GetScriptFlagArg ui
Calls and jumps by a bare address, from tables/calls.tsv.