From 69ee25bcc41ba5df75337395faae50974c510e18 Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Windows 11)" <rob@synchro.net> Date: Sat, 1 Jun 2024 18:41:33 -0700 Subject: [PATCH] Add support for command-line specifiers in external program 'startup dir' The exception is: DOS programs on Linux (e.g. Linux DOSEMU), due to the funky drive letter mappng, this can't be supported for those external programs. As requested by Fluid via IRC, for Frotz support, to store user-unique data files in data/user/####.something (e.g. "%juser/%4.zork"). --- src/sbbs3/xtrn_sec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/xtrn_sec.cpp b/src/sbbs3/xtrn_sec.cpp index ef17292338..7d9883fc32 100644 --- a/src/sbbs3/xtrn_sec.cpp +++ b/src/sbbs3/xtrn_sec.cpp @@ -1425,7 +1425,7 @@ bool sbbs_t::exec_xtrn(uint xtrnnum, bool user_event) else #endif { - SAFECOPY(startup_dir, cfg.xtrn[xtrnnum]->path); + cmdstr(cfg.xtrn[xtrnnum]->path, "", "", startup_dir); SAFECOPY(drop_file, path); } -- GitLab