From 8ee324d01cde9010bc6ed8a6cd884a1dac48b93b Mon Sep 17 00:00:00 2001 From: Kyep <16434066+Kyep@users.noreply.github.com> Date: Fri, 8 Jan 2021 10:27:45 +0000 Subject: [PATCH] Save logdir to data/logpath.txt (#15262) Co-authored-by: Kyep --- code/game/world.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/game/world.dm b/code/game/world.dm index ca336eb5dc3..9cfb62b1f82 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -281,6 +281,10 @@ GLOBAL_LIST_EMPTY(world_topic_handlers) fcopy(GLOB.config_error_log, "[GLOB.log_directory]/config_error.log") fdel(GLOB.config_error_log) + // Save the current round's log path to a text file for other scripts to use. + var/F = file("data/logpath.txt") + fdel(F) + F << GLOB.log_directory // Proc to enable the extools debugger, which allows breakpoints, live var checking, and many other useful tools // The DLL is injected into the env by visual studio code. If not running VSCode, the proc will not call the initialization