Skip to content

Commit

Permalink
Conductor.songPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
Nennneko5787 committed Oct 8, 2022
1 parent d28bd59 commit 971d5fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
2 changes: 2 additions & 0 deletions source/FunkinLua.hx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ class FunkinLua {

set('language', ClientPrefs.language);

set('songPos', Conductor.songPosition);

#if windows
set('buildTarget', 'windows');
#elseif linux
Expand Down
19 changes: 0 additions & 19 deletions source/Song.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ typedef SwagSong =
var gfVersion:String;
var stage:String;

var mania:Null<Int>;


var arrowSkin:String;
var splashSkin:String;
var validScore:Bool;
Expand Down Expand Up @@ -80,22 +77,6 @@ class Song
}
}
}

if (songJson.mania == null && ClientPrefs.convertEK) //yall better not replace this
{
/*var highestMania:Int = -1;
for (i in 0...songJson.notes.length)
{
var notes:Array<Dynamic> = songJson.notes[i].sectionNotes;
if (notes[1] > -1 && notes[1] > highestMania)
{
highestMania = notes[1];
}
}*/

songJson.mania = Note.defaultMania;
trace("Song mania value is NULL, set to " + Note.defaultMania);
}
}

public function new(song, notes, bpm)
Expand Down

0 comments on commit 971d5fb

Please sign in to comment.