Skip to content

Commit

Permalink
fix because its acting dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLikesKirby committed May 30, 2024
1 parent e6031b3 commit 483262d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions mods/test/data/charts/test-dia.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DaveDialogue
2 changes: 1 addition & 1 deletion mods/test/data/charts/test-settings.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Kawai Sprite & MtH:funkinHeading:The testiest song on the planet:DaveDialogue
Kawai Sprite & MtH:funkinHeading:The testiest song on the planet
8 changes: 4 additions & 4 deletions source/DialogueBox.hx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class DialogueBox extends FlxSpriteGroup
{
super();

if (FileSystem.exists(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-settings.txt')) {
custom = CoolUtil.coolTextFile(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-settings.txt');
if (FileSystem.exists(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-dia.txt')) {
custom = CoolUtil.coolTextFile(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-dia.txt');
}

if (playMusic)
Expand Down Expand Up @@ -120,11 +120,11 @@ class DialogueBox extends FlxSpriteGroup
case 'rano':
FlxG.sound.playMusic(Paths.music('stocknightambianceforranolol'), 0);
default:
if (FileSystem.exists(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-settings.txt')) {
if (FileSystem.exists(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-dia.txt')) {
for (i in 0...custom.length)
{
var data:Array<String> = custom[i].split(':');
if (data[3] == null) {
if (data[0] == null) {
FlxG.sound.music.stop();
} else {
FlxG.sound.playMusic(Paths.music(data[0]), 0);
Expand Down

0 comments on commit 483262d

Please sign in to comment.