difficulty fix on linux
This commit is contained in:
@@ -138,7 +138,6 @@ class ChartingState extends MusicBeatState
|
||||
}
|
||||
|
||||
FlxG.mouse.visible = true;
|
||||
FlxG.save.bind('funkin', 'ninjamuffin99');
|
||||
|
||||
tempBpm = _song.bpm;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user