House Freedom

This commit is contained in:
Page Asgardius 2023-12-28 05:54:25 -07:00
parent 927d73a3af
commit f44c71975d
4 changed files with 13 additions and 5 deletions

View file

@ -1,15 +1,22 @@
extends Label extends Label
var housefreedom
func _process(delta: float) -> void: 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: 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 Global.sk = true
if Global.sk: if Global.sk:
_sk() _sk()
else: else:
if Global.firstrun: 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: 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(): func _sk():
set_text("Script Kiddie detected, only true hackers can cheat here"); set_text("Script Kiddie detected, only true hackers can cheat here");

View file

@ -11,6 +11,7 @@ func _ready():
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN) Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
OS.get_data_dir().rsplit("/", true, 7)[2] OS.get_data_dir().rsplit("/", true, 7)[2]
loadgame.new() loadgame.new()
print(OS.get_processor_name())
#pass # Replace with function body. #pass # Replace with function body.
#add_child(title) #add_child(title)

View file

@ -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://bootclick.gd" id="1_52bti"]
[ext_resource type="Script" path="res://fps.gd" id="2_gnh1w"] [ext_resource type="Script" path="res://fps.gd" id="2_gnh1w"]

View file

@ -12,7 +12,7 @@ config_version=5
config/name="The Red Robot Radio" config/name="The Red Robot Radio"
run/main_scene="res://bootclick.tscn" 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 boot_splash/show_image=false
config/icon="res://icon.png" config/icon="res://icon.png"