fixed a lot of bugs but broke linux support
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
## [color=yellow]PLEASE IGNORE![/color] This is a important Node wich gets automatically added as Singleton.
|
||||
## This is a GDscript Node wich gets automatically added as Autoload while installing the addon.
|
||||
##
|
||||
## The DiscordSDKLoader Node automatically gets added as Singleton while installing the addon.
|
||||
## It has to run in the background to comunicate with Discord.
|
||||
## You don't need to use it.
|
||||
## It can run in the background to comunicate with Discord.
|
||||
## You don't need to use it unless you are using EditorPresence. If you remove it make sure to run [code]discord_sdk.run_callbacks()[/code] in a [code]_process[/code] function.
|
||||
##
|
||||
## @tutorial: https://github.com/vaporvee/discord-sdk-godot/wiki
|
||||
@tool
|
||||
class_name core_updater
|
||||
extends Node
|
||||
class_name DiscordSDKLoaderAutoload
|
||||
|
||||
func _process(_delta):
|
||||
if(ProjectSettings.get_setting("DiscordSDK/EditorPresence/enabled") && Engine.is_editor_hint()):
|
||||
@@ -20,4 +19,4 @@ func _process(_delta):
|
||||
discord_sdk.start_timestamp = int(Time.get_unix_time_from_system())
|
||||
discord_sdk.refresh()
|
||||
if(discord_sdk.app_id == 1108142249990176808 || !Engine.is_editor_hint()):
|
||||
discord_sdk.coreupdate()
|
||||
discord_sdk.run_callbacks()
|
Reference in New Issue
Block a user