From b6b191bdbe407c4122d0927e42658e1339cc0cee Mon Sep 17 00:00:00 2001 From: Bart Koppelmans Date: Sat, 20 Nov 2021 20:54:31 +0100 Subject: [PATCH] Fixed tprintf also printing the file name --- src/NetscriptFunctions.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index e5433b99c..0772b9900 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -696,22 +696,22 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS { const str = vsprintf(format, args); if (str.startsWith("ERROR") || str.startsWith("FAIL")) { - Terminal.error(`${workerScript.scriptRef.filename}: ${str}`); + Terminal.error(`${str}`); return; } if (str.startsWith("SUCCESS")) { - Terminal.success(`${workerScript.scriptRef.filename}: ${str}`); + Terminal.success(`${str}`); return; } if (str.startsWith("WARN")) { - Terminal.warn(`${workerScript.scriptRef.filename}: ${str}`); + Terminal.warn(`${str}`); return; } if (str.startsWith("INFO")) { - Terminal.info(`${workerScript.scriptRef.filename}: ${str}`); + Terminal.info(`${str}`); return; } - Terminal.print(`${workerScript.scriptRef.filename}: ${str}`); + Terminal.print(`${str}`); }, clearLog: function (): any { workerScript.scriptRef.clearLog();