aboutsummaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-26 23:08:32 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-26 23:08:32 +0200
commit8784d1a619f4224a4fe659750c91561fcc733100 (patch)
tree61f1671fe536d743f657404c73f87387094acac8 /client/global.gd
parent211e3d619e82aeb73dc6c52868991384682869f5 (diff)
parent3bccabee977e51ebae977731413cb6f93299b9a9 (diff)
downloadhurrycurry-8784d1a619f4224a4fe659750c91561fcc733100.tar
hurrycurry-8784d1a619f4224a4fe659750c91561fcc733100.tar.bz2
hurrycurry-8784d1a619f4224a4fe659750c91561fcc733100.tar.zst
Merge branch 'master' of codeberg.org:metamuffin/undercooked
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/global.gd b/client/global.gd
index ee1e3e96..42a5eac2 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -72,6 +72,16 @@ func load_dict(path: String, default: Dictionary) -> Dictionary:
print("Loaded dict: ", res)
return res
+func on_vulkan() -> bool:
+ if OS.has_feature("web"):
+ return false
+ elif OS.has_feature("pc"):
+ return true
+ elif OS.has_feature("mobile"):
+ return false
+ push_error("Unknown platform, assuming vulkan")
+ return true
+
func focus_first_button(node: Node) -> bool:
if node is Button:
node.grab_focus()