House Freedom
This commit is contained in:
parent
927d73a3af
commit
f44c71975d
4 changed files with 13 additions and 5 deletions
|
@ -1,13 +1,20 @@
|
|||
extends Label
|
||||
|
||||
var housefreedom
|
||||
func _process(delta: float) -> void:
|
||||
housefreedom = OS.get_processor_name().contains("AMD Custom APU") && OS.get_processor_name().contains("0405")
|
||||
if (OS.get_name() != "Linux" && !OS.get_name().ends_with("BSD")) || OS.get_distribution_name().contains("Kali") || !OS.get_data_dir().begins_with("/home") || OS.get_environment("WSL_DISTRO_NAME").length() < 0:
|
||||
Global.sk = true
|
||||
if Global.sk:
|
||||
_sk()
|
||||
else:
|
||||
if Global.firstrun:
|
||||
if housefreedom:
|
||||
set_text("Welcome to your first session "+OS.get_data_dir().rsplit("/", true, 7)[2]+"\nSteam machines are not dead yet");
|
||||
else:
|
||||
set_text("Welcome to your first session "+OS.get_data_dir().rsplit("/", true, 7)[2]);
|
||||
else:
|
||||
if housefreedom:
|
||||
set_text("Welcome back "+OS.get_data_dir().rsplit("/", true, 7)[2]+"\nSteam machines are not dead yet");
|
||||
else:
|
||||
set_text("Welcome back "+OS.get_data_dir().rsplit("/", true, 7)[2]);
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ func _ready():
|
|||
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
|
||||
OS.get_data_dir().rsplit("/", true, 7)[2]
|
||||
loadgame.new()
|
||||
print(OS.get_processor_name())
|
||||
#pass # Replace with function body.
|
||||
#add_child(title)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bp7f6s2aocyv7"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cepo18bj0mns4"]
|
||||
|
||||
[ext_resource type="Script" path="res://bootclick.gd" id="1_52bti"]
|
||||
[ext_resource type="Script" path="res://fps.gd" id="2_gnh1w"]
|
||||
|
|
|
@ -12,7 +12,7 @@ config_version=5
|
|||
|
||||
config/name="The Red Robot Radio"
|
||||
run/main_scene="res://bootclick.tscn"
|
||||
config/features=PackedStringArray("4.1", "GL Compatibility")
|
||||
config/features=PackedStringArray("4.2", "GL Compatibility")
|
||||
boot_splash/show_image=false
|
||||
config/icon="res://icon.png"
|
||||
|
||||
|
|
Loading…
Reference in a new issue