Commit 69b69e2
Add missing GetVirtualScreenSize stub to HeadlessWrapper (#1789)
Launch.lua calls GetVirtualScreenSize() in DrawPopup() and during
restart, but HeadlessWrapper.lua only stubs GetScreenSize() and
GetScreenScale(). When running headless and an error triggers
DrawPopup on the first OnFrame, this causes a crash because
GetVirtualScreenSize is not yet defined (Modules/Common.lua where
it is normally defined hasn't loaded yet).
The stub delegates to GetScreenSize() since GetScreenScale() returns
1 (no scaling) in headless mode, matching what the real implementation
in Common.lua would produce.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent b58beb9 commit 69b69e2
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
0 commit comments