Linux crash fixes

This commit is contained in:
notdraimdev
2024-10-08 23:33:47 +02:00
parent 03663d8698
commit b4b1dcdc4a
2 changed files with 30 additions and 25 deletions
+2
View File
@@ -873,6 +873,7 @@ script = ExtResource("12_073mb")
[node name="SettingsHolder" type="Control" parent="."] [node name="SettingsHolder" type="Control" parent="."]
layout_mode = 1 layout_mode = 1
anchors_preset = 8
anchor_left = 0.5 anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
anchor_right = 0.5 anchor_right = 0.5
@@ -880,6 +881,7 @@ anchor_bottom = 0.5
offset_top = -294.0 offset_top = -294.0
offset_bottom = -294.0 offset_bottom = -294.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2
[node name="SettingsPopup" type="Control" parent="SettingsHolder"] [node name="SettingsPopup" type="Control" parent="SettingsHolder"]
visible = false visible = false
+28 -25
View File
@@ -414,11 +414,13 @@ func _process(_delta: float) -> void:
print("yoo") print("yoo")
@warning_ignore("integer_division") @warning_ignore("integer_division")
UpdateSplashes() UpdateSplashes()
print(DiscordRPC.get_current_user()["username"]) if DiscordRPC.get_is_discord_working():
print(DiscordRPC.get_current_user()["username"])
print(TimeSpentListening) print(TimeSpentListening)
var LText = SplashStrings.pick_random() var LText = SplashStrings.pick_random()
DiscordRPC.large_image_text = LText DiscordRPC.large_image_text = LText
DiscordRPC.refresh() if DiscordRPC.get_is_discord_working():
DiscordRPC.refresh()
# "59:59 remaining" timestamp for the activity # "59:59 remaining" timestamp for the activity
if music_player.playing: if music_player.playing:
TimeSpentListening += _delta TimeSpentListening += _delta
@@ -470,29 +472,30 @@ func _process(_delta: float) -> void:
func UpdateSplashes(): func UpdateSplashes():
SplashStrings = ["Total listening time: %s!" % str(str(int(TimeSpentListening/60)/60 ) if DiscordRPC.get_is_discord_working():
+ "h : " + str((int(TimeSpentListening) / 60) % 60) + "m : " + SplashStrings = ["Total listening time: %s!" % str(str(int(TimeSpentListening/60)/60 )
str(int(TimeSpentListening) % 60) + "s"), + "h : " + str((int(TimeSpentListening) / 60) % 60) + "m : " +
"Version: %s" % version.text,"🤷‍♂️","This Changes every ~11 seconds", str(int(TimeSpentListening) % 60) + "s"),
"hello everybody my name is %s" % DiscordRPC.get_current_user()["username"], "Version: %s" % version.text,"🤷‍♂️","This Changes every ~11 seconds",
"wash your dishes, i know you got some","Running on %s" % OS.get_distribution_name(), "hello everybody my name is %s" % DiscordRPC.get_current_user()["username"],
"%s is cooking" % DiscordRPC.get_current_user()["username"], "debugging" if OS.has_feature("editor") else "Release build", "wash your dishes, i know you got some","Running on %s" % OS.get_distribution_name(),
"this user chose to show you all this info","Playing a Banger", "%s is cooking" % DiscordRPC.get_current_user()["username"], "debugging" if OS.has_feature("editor") else "Release build",
":steamhappy:","This is a sign that crocodiles live in water", "this user chose to show you all this info","Playing a Banger",
"Space? SPACE?! SPAAAAAAAAAAAAACE!!!", ":steamhappy:","This is a sign that crocodiles live in water",
"i love gd colonge", "Space? SPACE?! SPAAAAAAAAAAAAACE!!!",
"listening with reverb" if settings_menu_child.reverb_check.button_pressed else "i love gd colonge",
"not listening with reverb","the cake is edible", "listening with reverb" if settings_menu_child.reverb_check.button_pressed else
"what a great song!","this message is useless", "not listening with reverb","the cake is edible",
"stop reading these","why are you reading these", "what a great song!","this message is useless",
"hello from mars", "hello to mars","there is a fly in my room", "stop reading these","why are you reading these",
"yippee!","What, are they allergic to bathtubs or something", "hello from mars", "hello to mars","there is a fly in my room",
"Did you know, a 737 can land with up to 33knots of wind!", "yippee!","What, are they allergic to bathtubs or something",
"Welcome to todays JahresSchau", "Did you know, a 737 can land with up to 33knots of wind!",
"ram is very useful","your cpu is tasty","main course: Nvidia GPU", "Welcome to todays JahresSchau",
"SCHOTTLAND FUER IMMER","i eat airborne vehicles","linus trovalds", "ram is very useful","your cpu is tasty","main course: Nvidia GPU",
"","\(〇_o)/","Nuh Uh!","Yuh Huh","Breaching.", "SCHOTTLAND FUER IMMER","i eat airborne vehicles","linus trovalds",
"I get a narcissistic injury when the wall ignores me","totally not using %s" % version.text] "","\(〇_o)/","Nuh Uh!","Yuh Huh","Breaching.",
"I get a narcissistic injury when the wall ignores me","totally not using %s" % version.text]
func SaveEverything(): func SaveEverything():