needsvoices is finally removed!

This commit is contained in:
Frakits
2024-04-23 20:23:36 +03:00
parent ecae996cc2
commit 30fbf0c1bc
7 changed files with 5 additions and 38 deletions
+2 -2
View File
@@ -526,7 +526,7 @@ class Charter extends UIState {
noteTypes = PlayState.SONG.noteTypes;
FlxG.sound.setMusic(FlxG.sound.load(Paths.inst(__song, __diff)));
if (PlayState.SONG.meta.needsVoices != false) // null or true
if (Assets.exists(Paths.voices(__song, __diff))) // null or true
vocals = FlxG.sound.load(Paths.voices(__song, __diff));
else
vocals = new FlxSound();
@@ -602,7 +602,7 @@ class Charter extends UIState {
var wavesToGenerate:Array<{name:String, sound:FlxSound}> = [
{name: "Inst.ogg", sound: FlxG.sound.music},
];
if (PlayState.SONG.meta.needsVoices != false)
if (Assets.exists(Paths.voices(__song, __diff)))
wavesToGenerate.push({name: "Voices.ogg", sound: vocals});
for (strumLine in strumLines)