Skip to content

Commit

Permalink
fix for something
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortex2Oblivion committed Nov 12, 2023
1 parent d7afa20 commit 3c77341
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion source/modding/ModchartUtilities.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ class ModchartUtilities {
}
});


// actors

setLuaFunction("makeNoteCopy", function(id:String, noteIdx:Int) {
Expand Down Expand Up @@ -1385,7 +1386,7 @@ class ModchartUtilities {
getActorByName(id).singAnimPrefix = prefix;
}
});

setLuaFunction("setCharacterPreventDanceForAnim", function(id:String, preventDanceForAnim:Bool = true) {
if(getCharacterByName(id) != null)
{
Expand Down
14 changes: 7 additions & 7 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1105,15 +1105,15 @@ class PlayState extends MusicBeatState {
}
}

if (sys.FileSystem.exists("mods/" + Options.getData("curMod") + "/data/scripts/local/")){
var localScripts = sys.FileSystem.readDirectory("mods/" + Options.getData("curMod") + "/data/song data/" + curSong + "/");
if (localScripts.length > 0){
for (file in localScripts){
if (sys.FileSystem.exists("mods/" + Options.getData("curMod") + "/data/song data/" + curSong + "/")){
var songScripts = sys.FileSystem.readDirectory("mods/" + Options.getData("curMod") + "/data/song data/" + curSong + "/");
if (songScripts.length > 0){
for (file in songScripts){
if(file.endsWith('.hx')){
localScript = new HScript("mods/" + Options.getData("curMod") + "/data/song data/" + curSong + "/" + file, true);
localScript.start();
songScript = new HScript("mods/" + Options.getData("curMod") + "/data/song data/" + curSong + "/" + file, true);
songScript.start();

scripts.push(localScript);
scripts.push(songScript);
}
#if linc_luajit
if(file.endsWith('.lua')){
Expand Down

0 comments on commit 3c77341

Please sign in to comment.