Skip to content

Commit

Permalink
fixed it yay
Browse files Browse the repository at this point in the history
also uhhhhh
  • Loading branch information
Joalor64GH authored Sep 19, 2024
1 parent ebeabf9 commit 3677e75
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/game/Hscript.hx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Hscript extends FlxBasic {

public function execute(file:String, ?executeCreate:Bool = true):Void {
try {
interp.execute(parser.parseString(file));
interp.execute(parser.parseString(File.getContent(file)));
} catch (e:Dynamic)
Lib.application.window.alert(e, 'Hscript Error!');

Expand Down
4 changes: 3 additions & 1 deletion source/game/NoteSplash.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ class NoteSplash extends GameSprite {
if (visible && alpha > 0) {
FlxTween.tween(this, {alpha: 0}, 0.33, {
onComplete: (twn:FlxTween) -> {
if (alpha <= 0)
if (alpha <= 0) {
visible = false;
kill();
}
}
});
}
Expand Down
4 changes: 2 additions & 2 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class PlayState extends ExtendableState {
if (FileSystem.exists(folder) && FileSystem.isDirectory(folder)) {
for (file in FileSystem.readDirectory(folder)) {
if (file.endsWith('.hxs')) {
scriptArray.push(new Hscript(File.getContent(folder + file)));
scriptArray.push(new Hscript(folder + file));
}
}
}
Expand Down Expand Up @@ -176,7 +176,7 @@ class PlayState extends ExtendableState {
if (FileSystem.exists(folder) && FileSystem.isDirectory(folder)) {
for (file in FileSystem.readDirectory(folder)) {
if (file.endsWith('.hxs')) {
scriptArray.push(new Hscript(File.getContent(folder + file)));
scriptArray.push(new Hscript(folder + file));
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions source/states/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class TitleState extends ExtendableState {

#if FUTURE_POLYMOD
if (ModHandler.trackedMods != []) {
for (i in ModHandler.trackedMods)
Main.toast.create('Mods Installed:', 0xFFFFFF00, i.title);
var installedMods:Array<String> = ModHandler.getMods();
Main.toast.create('Mods Installed:', 0xFFFFFF00, installedMods.join('\n'));
}
#end

Expand Down

0 comments on commit 3677e75

Please sign in to comment.