From f44c71975dc57a1769911f13798b61afeccee433 Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Thu, 28 Dec 2023 05:54:25 -0700 Subject: [PATCH] House Freedom --- Label2.gd | 13 ++++++++++--- bootclick.gd | 1 + bootclick.tscn | 2 +- project.godot | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Label2.gd b/Label2.gd index e130d31..f1ca277 100644 --- a/Label2.gd +++ b/Label2.gd @@ -1,15 +1,22 @@ 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: - set_text("Welcome to your first session "+OS.get_data_dir().rsplit("/", true, 7)[2]); + 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: - set_text("Welcome back "+OS.get_data_dir().rsplit("/", true, 7)[2]); + 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]); func _sk(): set_text("Script Kiddie detected, only true hackers can cheat here"); diff --git a/bootclick.gd b/bootclick.gd index 6128402..96b4c40 100644 --- a/bootclick.gd +++ b/bootclick.gd @@ -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) diff --git a/bootclick.tscn b/bootclick.tscn index cae5794..dbae01b 100644 --- a/bootclick.tscn +++ b/bootclick.tscn @@ -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"] diff --git a/project.godot b/project.godot index 0d31a6b..1c0ae09 100644 --- a/project.godot +++ b/project.godot @@ -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"