another blocker against mku equal 0 and added tprintf

This commit is contained in:
Olivier Gagnon
2021-08-27 11:05:36 -04:00
parent 3ab306f9d7
commit c9ab7908a7
6 changed files with 38 additions and 12 deletions
+3
View File
@@ -936,6 +936,9 @@ function NetscriptFunctions(workerScript) {
}
post(`${workerScript.scriptRef.filename}: ${argsToString(arguments)}`);
},
tprintf: function(format, ...args) {
post(vsprintf(format, args));
},
clearLog: function() {
workerScript.scriptRef.clearLog();
},