winnitron / WinnitronLauncher

The official Winnitron launcher! The meat and potatoes of the Winnitron.
winnitron.com
MIT License
34 stars 7 forks source link

Set environment variables #104

Closed aaronklaassen closed 6 years ago

aaronklaassen commented 6 years ago

It may be useful for a game to know a) if it's running on a Winnitron, b) which Winnitron it's running on, and c) what version of the Launcher is installed.

On startup, Launcher sets WINNITRON_VERSION and WINNITRON_IDENTIFIER user environment variables.

I also squeezed in a bugfix here where sometimes we'd be trying to access options before they'd been loaded, which threw an exception and prevented the error/oops screen. 🙄