Commit 56d0a58
Fix headless check in Exporting for dedicated servers (godotengine#8362)
The example didn't work as `--headless` isn't part of `OS.get_cmdline_args()`' return value.
This new approach also works if the binary automatically uses headless mode
because it's the only display server built in the binary (which can be the case
for custom builds).
Co-authored-by: Hugo Locurcio <[email protected]>1 parent 0f46393 commit 56d0a58
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
0 commit comments