From 22a51c6dc62e4ef929b018f289f610acf8a3d92a Mon Sep 17 00:00:00 2001 From: Joalor64 Date: Fri, 8 Nov 2024 10:30:47 -0500 Subject: [PATCH] Update Hscript.hx --- source/modding/Hscript.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/modding/Hscript.hx b/source/modding/Hscript.hx index 9edb0c7..cb69ca1 100644 --- a/source/modding/Hscript.hx +++ b/source/modding/Hscript.hx @@ -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); @@ -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);