Skip to content

Commit

Permalink
Update Hscript.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 8, 2024
1 parent a3ac7ee commit 22a51c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/modding/Hscript.hx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class Hscript extends FlxBasic {
trace(value);
});

setVariable('platform', PlatformUtil.getPlatform());

setVariable('importScript', function(source:String) {
var name:String = StringTools.replace(source, '.', '/');
var script:Hscript = new Hscript('$name.hxs', false);
Expand Down Expand Up @@ -135,6 +137,7 @@ class Hscript extends FlxBasic {
setVariable('ModHandler', ModHandler);
#end
setVariable('Note', Note);
setVariable('Path', Path);
setVariable('Paths', Paths);
setVariable('PlayState', PlayState);
setVariable('Rating', Rating);
Expand Down

0 comments on commit 22a51c6

Please sign in to comment.