benilla-re systems structs docs

Script::GetCurrentResolution

function · ui · primitive

Address
0x48bf10 · 182 bytes, up to 0x48bfc5
Signature
int __fastcall (lua_State *L)
Meaning
Returns the 1-based list index of the gxResolution option, or 1 on a miss
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/videoverbs#the-resolution-verbs

Finding: The resolution verbs in ui: the video option verbs

GetScreenResolutions pushes one string %dx%d per list entry and returns the count. GetCurrentResolution scans the gxResolution option's text with %d%c%d, so any one-character separator parses, and returns the 1-based index of the matching entry; on a miss, with the option or its text absent, or with an empty list, it returns the number 1. The option's default text 640x480 is below the list floor, so a fresh configuration answers 1 by a miss.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.