benilla-re systems structs docs

Script::GetScreenResolutions

function · ui · orchestration

Address
0x48bc20 · 98 bytes, up to 0x48bc81
Signature
int __fastcall (lua_State *L)
Meaning
Returns every entry of the resolution list as a WxH string
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.