From c5afa2d621b69f8fb6f190e8e5710df086ea5a71 Mon Sep 17 00:00:00 2001 From: Betopia <73242725+betpowo@users.noreply.github.com> Date: Sun, 22 Nov 2026 12:17:36 -0400 Subject: [PATCH 1/2] fix importFailedCallback cus they forgot --- hscript/Interp.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscript/Interp.hx b/hscript/Interp.hx index 17b5f71b..7b1c95c4 100644 --- a/hscript/Interp.hx +++ b/hscript/Interp.hx @@ -146,7 +146,7 @@ class Interp { /** * Custom Import resolver. It's called when an import couldn't be resolved. */ - public var importFailedCallback:Array->Null->Bool; + public var importFailedCallback:Array->Null->Null->Bool; public var customClasses:Map; public var variables:Map; From 28b538d0be001f6f08e87d95cf148cba1dccf83e Mon Sep 17 00:00:00 2001 From: Betopia <73242725+betpowo@users.noreply.github.com> Date: Sun, 22 Nov 2026 12:19:42 -0400 Subject: [PATCH 2/2] wait shit --- hscript/Interp.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscript/Interp.hx b/hscript/Interp.hx index 7b1c95c4..339cda85 100644 --- a/hscript/Interp.hx +++ b/hscript/Interp.hx @@ -978,7 +978,7 @@ class Interp { beforeAlias = claVarName; setAlias = aliasAs; - if(importFailedCallback == null || !importFailedCallback(oldSplitName, toSetName)){ + if(importFailedCallback == null || !importFailedCallback(oldSplitName, toSetName, null)){ beforeAlias = null; setAlias = null; error(EInvalidClass(oldClassName));