issues
search
REGoth-project
/
REGoth
OpenSource-Reimplementation of the zEngine, used by the game "Gothic"
GNU General Public License v3.0
631
stars
62
forks
source link
Daedalus vm debug features
#182
Closed
markusobi
closed
7 years ago
markusobi
commented
7 years ago
printing the VM's callstack now actually works (script functions, externals, arbitrary depth)
fixed many superfluous pushes to the data stack (
pushint(0)
), since the VM already pops 0 by default
script function calls from engine (outermost call): VM now only pop's a value if the function has a return flag (specifed in DAT-file).
VM now complains about missing return values on the stack (i.e. happens on many dialog conditions: DIA_..._CONDITION)
fixed some externals that messed up the stack.
VM's stack gets cleared before engine calls a script function (outermost call)
pushint(0)
), since the VM already pops 0 by default