From c687c031733613099d9a4c9c406813bfa493171b Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Wed, 30 Oct 2024 08:23:22 +0100 Subject: [PATCH] Do not start if bytecode has no debug info --- hld/Module.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hld/Module.hx b/hld/Module.hx index ae0eb76..590bf66 100644 --- a/hld/Module.hx +++ b/hld/Module.hx @@ -59,6 +59,9 @@ class Module { public function load( data : haxe.io.Bytes ) { code = new format.hl.Reader().read(new haxe.io.BytesInput(data)); + if( code.debugFiles == null ) + throw "Debug info not available in the bytecode"; + for( t in code.types ) switch( t ) { case HObj(o), HStruct(o):