From 944a13eaac510bebbd26fed33d93daa09980e7ef Mon Sep 17 00:00:00 2001 From: Joalor64 Date: Tue, 12 Nov 2024 07:42:52 -0500 Subject: [PATCH] felt like adding hxs back just because --- source/backend/MacrosUtil.hx | 7 ++++--- source/modding/ModHandler.hx | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/backend/MacrosUtil.hx b/source/backend/MacrosUtil.hx index d7f1f63..9d20bac 100644 --- a/source/backend/MacrosUtil.hx +++ b/source/backend/MacrosUtil.hx @@ -1,10 +1,11 @@ package backend; import haxe.macro.Expr; +import haxe.macro.Context; import sys.io.Process; class MacrosUtil { - public static macro function getCommitId():haxe.macro.Expr.ExprOf { + public static macro function getCommitId():Expr.ExprOf { try { var daProcess = new Process('git', ['log', '--format=%h', '-n', '1']); daProcess.exitCode(true); @@ -13,7 +14,7 @@ class MacrosUtil { return macro $v{"-"}; } - public static macro function getDefines():haxe.macro.Expr { - return macro $v{haxe.macro.Context.getDefines()}; + public static macro function getDefines():Expr { + return macro $v{Context.getDefines()}; } } \ No newline at end of file diff --git a/source/modding/ModHandler.hx b/source/modding/ModHandler.hx index c2f307f..f65053f 100644 --- a/source/modding/ModHandler.hx +++ b/source/modding/ModHandler.hx @@ -108,6 +108,7 @@ class ModHandler { public static function getParseRules():ParseRules { final output:ParseRules = ParseRules.getDefault(); output.addType("txt", TextFileFormat.LINES); + output.addType("hxs", TextFileFormat.PLAINTEXT); output.addType("hxc", TextFileFormat.PLAINTEXT); return output != null ? output : null; }