From 1adb550a9b7cad3f44c0b21949831cc9b29aebe6 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Wed, 7 Dec 2022 12:06:13 +0100 Subject: [PATCH] stuff --- buildnumber.txt | 2 +- source/funkin/game/PlayState.hx | 1 + source/funkin/system/Paths.hx | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/buildnumber.txt b/buildnumber.txt index e7814ff8..99a80b18 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1415 \ No newline at end of file +1418 \ No newline at end of file diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 4bf4a6bd..df8c3e55 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -522,6 +522,7 @@ class PlayState extends MusicBeatState function startSong():Void { + scripts.call("onSongStart"); startingSong = false; previousFrameTime = FlxG.game.ticks; diff --git a/source/funkin/system/Paths.hx b/source/funkin/system/Paths.hx index 675a47d5..cf2a8810 100644 --- a/source/funkin/system/Paths.hx +++ b/source/funkin/system/Paths.hx @@ -68,6 +68,11 @@ class Paths return getPath('data/$key.txt', TEXT, library); } + inline static public function ini(key:String, ?library:String) + { + return getPath('data/$key.ini', TEXT, library); + } + inline static public function fragShader(key:String, ?library:String) { return getPath('shaders/$key.frag', TEXT, library);