Add v8 snapshot support

This commit is contained in:
luboslenco
2020-11-03 15:19:41 +01:00
parent b86479041a
commit bc841a537a
2 changed files with 15 additions and 2 deletions
+7
View File
@@ -26,7 +26,14 @@ class Main {
static var tasks: Int;
// Generating snapshot
public static function main() {
js.Syntax.code("globalThis.kickstart = Main.kickstart");
}
// Program startup
@:keep
public static function kickstart() {
// Used to locate external application data folder
Krom.setApplicationName("ArmorPaint");