Skip to content

Commit

Permalink
felt like adding hxs back just because
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 12, 2024
1 parent d2a07e8 commit 944a13e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/backend/MacrosUtil.hx
Original file line number Diff line number Diff line change
@@ -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<String> {
public static macro function getCommitId():Expr.ExprOf<String> {
try {
var daProcess = new Process('git', ['log', '--format=%h', '-n', '1']);
daProcess.exitCode(true);
Expand All @@ -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()};
}
}
1 change: 1 addition & 0 deletions source/modding/ModHandler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 944a13e

Please sign in to comment.