steam初始化脚本
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
extends Node
|
||||||
|
|
||||||
|
# Steam AppID
|
||||||
|
var steam_app_id: int = 480
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
initialize_steam()
|
||||||
|
|
||||||
|
func initialize_steam() -> void:
|
||||||
|
var initialize_response: Dictionary = Steam.steamInitEx(
|
||||||
|
steam_app_id,
|
||||||
|
true
|
||||||
|
)
|
||||||
|
print("Did Steam initialize?: %s" % initialize_response)
|
||||||
|
|
||||||
|
if initialize_response['status'] > Steam.STEAM_API_INIT_RESULT_OK:
|
||||||
|
print("Failed to initialize Steam, shutting down: %s" % initialize_response)
|
||||||
|
get_tree().quit()
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://w087kpi6dipk
|
||||||
@@ -14,6 +14,10 @@ config/name="agame"
|
|||||||
config/features=PackedStringArray("4.7", "Forward Plus")
|
config/features=PackedStringArray("4.7", "Forward Plus")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
|
[autoload]
|
||||||
|
|
||||||
|
Steamworks="*uid://w087kpi6dipk"
|
||||||
|
|
||||||
[debug]
|
[debug]
|
||||||
|
|
||||||
file_logging/enable_file_logging=true
|
file_logging/enable_file_logging=true
|
||||||
|
|||||||
Reference in New Issue
Block a user