diff --git a/mods/test/data/customCharacterList.txt b/mods/test/data/customCharacterList.txt new file mode 100644 index 0000000..0c3c67e --- /dev/null +++ b/mods/test/data/customCharacterList.txt @@ -0,0 +1 @@ +Example \ No newline at end of file diff --git a/source/ChartingState.hx b/source/ChartingState.hx index 53028b7..0c2f2aa 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -108,6 +108,9 @@ class ChartingState extends MusicBeatState var shagVoice:Bool; + var c:Array; + var cm:Array; + override function create() { curSection = lastSection; @@ -329,7 +332,15 @@ class ChartingState extends MusicBeatState shiftNotes(Std.int(stepperShiftNoteDial.value),Std.int(stepperShiftNoteDialstep.value),Std.int(stepperShiftNoteDialms.value)); }); - var characters:Array = CoolUtil.coolTextFile(Paths.txt('characterList')); + c = CoolUtil.coolTextFile(Paths.txt('characterList')); + + if (FileSystem.exists(TitleState.modFolder + '/data/customCharacterList.txt')) { + cm = CoolUtil.coolTextFile(TitleState.modFolder + '/data/customCharacterList.txt'); + } else { + cm = ['']; + } + +var characters:Array = c.concat(cm); var stages:Array = CoolUtil.coolTextFile(Paths.txt('stageList'));