Initializing mod_steam should make the game crash if the game was not launched from Steam
Issue #76
resolved
Actually launching a game that uses mod_steam, throws an error to the console but doesn't exit the game at the moment.
I think it should instantly exit the game, or at least inform the game that it wasn't launched properly from Steam.
Comments (3)
-
repo owner -
reporter Okay, not a bug, I didn't know about that global variable. Thanks! :)
-
reporter - changed status to resolved
There's actually a global variable to check this
- Log in to comment
You should be able to know if the initialization worked correctly by reading the steam_appid global variable. If it's set to -1, then Steam could not be initialized correctly, it'll otherwise be your steam app id.
I can make mod_steam quit if the initialization did not work, although that can be a bit harsh for development.