From 6578f6c3098653fdb8e45be18337e54db89f3a90 Mon Sep 17 00:00:00 2001
From: lunarcleint <88809950+lunarcleint@users.noreply.github.com>
Date: Fri, 23 Jun 2023 22:40:51 -0700
Subject: [PATCH] allow 3d by default
---
project.xml | 2 +-
source/funkin/game/PlayState.hx | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/project.xml b/project.xml
index 58fe0406..327e5bd7 100644
--- a/project.xml
+++ b/project.xml
@@ -149,7 +149,7 @@
-
+
diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx
index b30d8a49..2e582599 100644
--- a/source/funkin/game/PlayState.hx
+++ b/source/funkin/game/PlayState.hx
@@ -561,12 +561,6 @@ class PlayState extends MusicBeatState
// case "":
// ADD YOUR HARDCODED SCRIPTS HERE!
default:
- function addScript(file:String) {
- var ext = Path.extension(file).toLowerCase();
- if (Script.scriptExtensions.contains(ext))
- scripts.add(Script.create(file));
- }
-
for(content in [Paths.getFolderContent('songs/${SONG.meta.name.toLowerCase()}/scripts', true, fromMods ? MODS : BOTH), Paths.getFolderContent('data/charts/', true, fromMods ? MODS : BOTH)])
for(file in content) addScript(file);
@@ -1594,6 +1588,12 @@ class PlayState extends MusicBeatState
scripts.call("beatHit", [curBeat]);
}
+ public function addScript(file:String) {
+ var ext = Path.extension(file).toLowerCase();
+ if (Script.scriptExtensions.contains(ext))
+ scripts.add(Script.create(file));
+ }
+
// GETTERS & SETTERS
#if REGION
private inline function get_player():StrumLine