From 942e3c1ec36aec868ea2dd73db432cd4c4c76d75 Mon Sep 17 00:00:00 2001 From: Snirozu <72814880+Snirozu@users.noreply.github.com> Date: Sat, 16 Nov 2024 13:17:09 +0100 Subject: [PATCH 1/2] Update SScript.hx --- src/tea/SScript.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tea/SScript.hx b/src/tea/SScript.hx index fe69c28..b22a886 100644 --- a/src/tea/SScript.hx +++ b/src/tea/SScript.hx @@ -731,6 +731,7 @@ class SScript { if (FileSystem.exists(scriptPath)) { scriptFile = scriptPath; script = File.getContent(scriptPath); + } else #end if (Assets.exists(scriptPath)) { scriptFile = scriptPath; From ac2cc41f2e3b695f8f44eb3bf3aae0fd8d5c12cd Mon Sep 17 00:00:00 2001 From: Snirozu <72814880+Snirozu@users.noreply.github.com> Date: Sat, 16 Nov 2024 13:27:53 +0100 Subject: [PATCH 2/2] Update SScript.hx --- src/tea/SScript.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tea/SScript.hx b/src/tea/SScript.hx index b22a886..b5ba471 100644 --- a/src/tea/SScript.hx +++ b/src/tea/SScript.hx @@ -888,7 +888,7 @@ class SScript { list.push(new SScript(path + i)); } } else #end if (Assets.exists(path)) { - var files:Array = Assets.list().filter(folder -> folder.contains(path)).map(folder -> folder.substr(folder.lastIndexOf("/") + 1); + var files:Array = Assets.list().filter(folder -> folder.contains(path)).map(folder -> folder.substr(folder.lastIndexOf("/") + 1)); for (i in files) { var hasExtension:Bool = false;