difficulty fix on linux

This commit is contained in:
Yoshman29
2022-12-24 00:31:21 +01:00
parent b6564abfd5
commit 5eb0123dca
4 changed files with 3 additions and 4 deletions
-1
View File
@@ -138,7 +138,6 @@ class ChartingState extends MusicBeatState
}
FlxG.mouse.visible = true;
FlxG.save.bind('funkin', 'ninjamuffin99');
tempBpm = _song.bpm;
+1 -1
View File
@@ -278,7 +278,7 @@ class PlayState extends MusicBeatState
// ADD YOUR HARDCODED SCRIPTS HERE!
default:
for(content in [
Paths.getFolderContent('data/charts/${SONG.song}/', false, true, !fromMods),
Paths.getFolderContent('data/charts/${SONG.song.toLowerCase()}/', false, true, !fromMods),
Paths.getFolderContent('data/charts/', false, true, !fromMods)]) {
for(file in content) {
var ext = Path.extension(file).toLowerCase();
+1 -1
View File
@@ -304,7 +304,7 @@ class SongMetadata
if (difficulties != null && difficulties.length > 0) {
this.difficulties = difficulties;
} else {
this.difficulties = difficulties = [for(f in Paths.getFolderContent('data/charts/${song}/', false, false, fromSource)) if (Path.extension(f = f.toUpperCase()) == "JSON") Path.withoutExtension(f)];
this.difficulties = difficulties = [for(f in Paths.getFolderContent('data/charts/${song.toLowerCase()}/', false, false, fromSource)) if (Path.extension(f = f.toUpperCase()) == "JSON") Path.withoutExtension(f)];
if (difficulties.length == 3) {
var hasHard = false, hasNormal = false, hasEasy = false;
for(d in difficulties) {
+1 -1
View File
@@ -39,7 +39,7 @@ class WindowsAPI {
#if windows
native.WinAPI.showMessageBox(caption, message, icon);
#else
lime.app.Application.current.window.alert(caption, message);
lime.app.Application.current.window.alert(message, caption);
#end
}