Commit 81a3ee5
Add missing GetVirtualScreenSize stub to HeadlessWrapper
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 3ff8900 commit 81a3ee5
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