From b665202fc06826ae3c239f3420f8052989c7568c Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 19 Jan 2024 19:03:20 +0100 Subject: Set the TUXMCD_DEBUG env. var for VFS logging In case tuxcmd is started with the --debug switch, set the TUXMCD_DEBUG env. var that is later picked up by modules. --- vfs/UVFSCore.pas | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vfs') diff --git a/vfs/UVFSCore.pas b/vfs/UVFSCore.pas index b39ad8e..e7d63a2 100644 --- a/vfs/UVFSCore.pas +++ b/vfs/UVFSCore.pas @@ -1121,6 +1121,8 @@ end; procedure DoInitPlugins; begin + if ParamDebug then + setenv('TUXCMD_DEBUG', '1', 1); PluginList := TList.Create; if not ParamDisablePlugins then begin BinaryPath := GetBinaryPath; -- cgit v1.2.3