The new directive doesn't seem to work here. Looks like DefaultLevel is
never
changed:
core/parseconfig.inc:pc_default: cmp ax,[DefaultLevel]
core/parseconfig.inc:DefaultLevel dw 0 ; The current
level of default
core/ui.inc: cmp word [DefaultLevel],1 ; Active UI statement?
- Sebastian
diff --git a/core/parseconfig.inc b/core/parseconfig.inc
index 2fb26fd..fcf18d9 100644
--- a/core/parseconfig.inc
+++ b/core/parseconfig.inc
@@ -22,6 +22,7 @@
;
pc_default: cmp ax,[DefaultLevel]
jb .skip
+ mov [DefaultLevel],ax
mov di,default_cmd
call getline
mov byte [di-1],0 ; null-terminate