From 69206a502a56cd16ecd0abe532b05cb4f1d65db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Lemi=C3=A8re?= Date: Tue, 30 Aug 2016 09:37:36 +0200 Subject: [PATCH] Note in comment why hack [skip ci] --- templates/haxe/ApplicationMain.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/haxe/ApplicationMain.hx b/templates/haxe/ApplicationMain.hx index 298c1e9fa..3922b005f 100644 --- a/templates/haxe/ApplicationMain.hx +++ b/templates/haxe/ApplicationMain.hx @@ -130,6 +130,8 @@ class ApplicationMain { #if neko @:noCompletion @:dox(hide) public static function __init__ () { + // Copy from https://github.com/HaxeFoundation/haxe/blob/development/std/neko/_std/Sys.hx#L164 + // since Sys.programPath () isn't available in __init__ var sys_program_path = { var m = neko.vm.Module.local().name; try {