ajout de la connexion steam
This commit is contained in:
16
common/steam_connection/steam_connection.gd
Normal file
16
common/steam_connection/steam_connection.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends Node
|
||||
|
||||
const APP_ID = "4452760"
|
||||
|
||||
func _init():
|
||||
OS.set_environment("SteamAppID", APP_ID)
|
||||
OS.set_environment("SteamGameID", APP_ID)
|
||||
|
||||
func _ready():
|
||||
Steam.steamInit()
|
||||
|
||||
var is_running = Steam.isSteamRunning()
|
||||
|
||||
if !is_running:
|
||||
printerr("Steam is not running")
|
||||
return
|
||||
1
common/steam_connection/steam_connection.gd.uid
Normal file
1
common/steam_connection/steam_connection.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bq12bubjof2mo
|
||||
Reference in New Issue
Block a user