We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 291c1d2 commit 1ca98b3Copy full SHA for 1ca98b3
source/funkin/backend/utils/CoolUtil.hx
@@ -389,9 +389,14 @@ class CoolUtil
389
if (Assets.exists(infoPath)) {
390
var musicInfo = IniUtil.parseAsset(infoPath, [
391
"BPM" => null,
392
- "TimeSignature" => "4/4"
+ "TimeSignature" => "4/4",
393
+ "LoopTime" => "0.0"
394
]);
395
396
+
397
+ if (FlxG.sound.music != null) {
398
+ FlxG.sound.music.loopTime = Std.parseFloat(musicInfo["LoopTime"]) * 1000;
399
+ }
400
var timeSignParsed:Array<Null<Float>> = musicInfo["TimeSignature"] == null ? [] : [for(s in musicInfo["TimeSignature"].split("/")) Std.parseFloat(s)];
401
var beatsPerMeasure:Float = 4;
402
var stepsPerBeat:Float = 4;
0 commit comments