greenworks
greenworks copied to clipboard
Is there a way to check if we're initialized?
I'm looking for a way to know if my game is running within Steam or without.
Currently, I do:
if (greenworks && greenworks.init())
But obviously this doesn't scale. Is there a way to do this that I missed? Something like greenworks.isInitialized()
? Or perhaps greenworks.init()
boolean result is safe to call multiple times?
Thanks!
greenworks.isSteamRunning() is probably what you want? If that doesn't work for some reason, you could
if (greenworks && greenworks.init()) {
running_in_steam=true
...
}
and then later check if (running_in_steam)
throughout your code