@@ -178,6 +178,10 @@ async def prepare(self) -> bool:
178178 self .config ['spectators_audio_disabled' ] = False
179179 dirty |= self ._maybe_update_config ('General Settings' , 'SPECTATORS_AUDIO_DISABLED' ,
180180 'spectators_audio_disabled' )
181+ # new instructor mode
182+ if parse (self .version ) >= parse ('2.3.3.0' ):
183+ dirty |= self ._maybe_update_config ('General Settings' , 'ALLOW_INSTRUCTOR_MODE' ,
184+ 'instructor_mode' )
181185 # disable effects (for music plugin)
182186 # TODO: better alignment with the music plugin!
183187 dirty |= self ._maybe_update_config ('General Settings' , 'RADIO_EFFECT_OVERRIDE' ,
@@ -272,11 +276,16 @@ def run_subprocess():
272276 info = None
273277 out = subprocess .PIPE if self .config .get ('debug' , False ) else subprocess .DEVNULL
274278 err = subprocess .PIPE if self .config .get ('debug' , False ) else subprocess .STDOUT
275-
276- proc = subprocess .Popen ([
277- self .get_exe_path (),
278- f"-cfg={ self .get_config_path ()} "
279- ], startupinfo = info , stdout = out , stderr = err , close_fds = True )
279+ # we want the SRS logfile in our normal logs folder
280+ cwd = os .path .join (self .server .instance .home , 'Logs' )
281+
282+ proc = subprocess .Popen (
283+ [
284+ self .get_exe_path (),
285+ f"-cfg={ self .get_config_path ()} "
286+ ],
287+ cwd = cwd , startupinfo = info , stdout = out , stderr = err , close_fds = True
288+ )
280289
281290 if self .config .get ('debug' , False ):
282291 Thread (target = log_output , args = (proc .stdout ,logging .DEBUG ), daemon = True ).start ()
0 commit comments