From 33ad908143f76671be929733e41c7c3146403bbe Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 29 Sep 2023 12:56:34 -0600 Subject: [PATCH] restore cwd after starting obs --- src/kiss_tools/OBSTools.kiss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kiss_tools/OBSTools.kiss b/src/kiss_tools/OBSTools.kiss index af69cb8..584dece 100644 --- a/src/kiss_tools/OBSTools.kiss +++ b/src/kiss_tools/OBSTools.kiss @@ -28,6 +28,7 @@ (when dirOfExe dirOfExe)) // This is required to find the local.ini file: + (localVar lastCwd (Sys.getCwd)) (when dirOfExe (Sys.setCwd dirOfExe)) (set obsProcess (new sys.io.Process @@ -43,6 +44,7 @@ "--minimize-to-tray" "--multi" ])) + (when dirOfExe (Sys.setCwd lastCwd)) (set obsIsRecording true)) (print "OBS profile and scene collection not found for ${os} in ${projectObsFolder}. Will not be recording"))) (print "OBSTools.projectObsFolder is not set. Will not be recording")))