Main forum > GLBasic - en

Steam API for GLBasic -> achievements, leaderboards for Your game ;-)

<< < (4/4)

bigsofty:
Thank you Dreamerman, this will come in very handy the closer I get to a Steam release!  :good:

loftcat:
Sounds like you're progressing really well with this and definitely something I'd love to see up and running in your game!

spacefractal:
Im actuelly used this for only one thing for some of my games: Checking if Steam Deck is used. The reasons is some of my games is default set to a windowred mode. This is a no go on the Steam deck, where im wanted full screen mode...... Actuelly got to work fine.


--- Code: (glbasic) --- ?IFDEF WIN32
LOCAL mySteam AS stats_manager_object, i1%
LOCAL isok%=mySteam.Init%(1)
IF isok%<>0
STEAMDECK=Steam_API_Utils_IsSteamRunningOnSteamDeck()
ENDIF
?ENDIF

--- End code ---

also if you dont check the steam was init or not and user launch the exe outside steam, then its will crash. Hence im checking for that.

Navigation

[0] Message Index

[*] Previous page

Go to full version