Skip to content

Commit

Permalink
well it doesnt work anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Feb 27, 2024
1 parent 9dd0766 commit 1f24f79
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 179 deletions.
19 changes: 6 additions & 13 deletions source/backend/Difficulty.hx
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,15 @@ class Difficulty
'Hard'
];
public static var list:Array<String> = [];
private static var defaultDifficulty(default, never):String = 'Normal'; //The chart that has no suffix and starting difficulty on Freeplay/Story Mode
private static var defaultDifficulty(default, never):String = 'Normal'; //The chart that has no postfix and starting difficulty on Freeplay/Story Mode

inline public static function getFilePath(num:Null<Int> = null)
{
inline public static function getFilePath(num:Null<Int> = null) {
if(num == null) num = PlayState.storyDifficulty;

var fileSuffix:String = list[num].toLowerCase();
if(fileSuffix != defaultDifficulty.toLowerCase())
{
fileSuffix = '-' + fileSuffix;
}
else
{
fileSuffix = '';
}
return Paths.formatToSongPath(fileSuffix);
var filePostfix:String = list[num];
if(Paths.formatToSongPath(filePostfix) != Paths.formatToSongPath(defaultDifficulty)) filePostfix = '-' + filePostfix;
else filePostfix = '';
return Paths.formatToSongPath(filePostfix);
}

inline public static function loadFromWeek(week:WeekData = null)
Expand Down
Loading

0 comments on commit 1f24f79

Please sign in to comment.