jfsw icon indicating copy to clipboard operation
jfsw copied to clipboard

Command-line options?

Open s1eve-mcdichae1 opened this issue 2 years ago • 2 comments

I saw in a thread on RetroPie forums how I can use -gdragon.zip and -gWT.GRP to launch the expansions. I also see in your documentation the lists of -net options and console commands, but I don't see any "regular" options anywhere. Are there any? -h and --help aren't showing me anything. Specifically, wondering if I can set the save and/or data dirs from command-line but also curious about any other options there might be.

Edit: ah, I found -? works. Looks like there is no save dir option, then?

s1eve-mcdichae1 avatar Mar 16 '22 23:03 s1eve-mcdichae1

The working directory where configuration, savegames, screenshots, and demos are written is coded as ~/.jfsw, but perhaps what you'd rather is JFSW's self-contained 'portable' mode. If you touch a file named user_profiles_disabled in whatever directory you've put the sw executable and sw.grp data files and run the game with that as the working directory, it will store configuration and savegames there instead. e.g.

jonof@zotac:~/tmp/somewhereelse$ ls -og
total 54712
-rw-r--r-- 1   306056 Mar 19 11:26 game0.sav
-rw-r--r-- 1       40 Mar 19 11:26 grpfiles.cache
-rwxr-xr-x 1  8161720 Mar 19 11:24 sw
-rw-r--r-- 1     6265 Mar 19 11:26 sw.cfg
-rw-r--r-- 2 47536148 Jan 29  2017 sw.grp
-rw-r--r-- 1     3272 Mar 19 11:26 sw.log
-rw-r--r-- 1        0 Mar 19 11:23 user_profiles_disabled

jonof avatar Mar 19 '22 01:03 jonof

Thanks. I don't think this will be the best way to solve my issue (trying to keep separate save-file directories for the main game and each of the two expansions) though, as I would have to keep duplicate copies of the executable and .grp files in each subdir too, yeah?

What I've done for now is use a script to redefine the symlink (since, the way it's installed in RetroPie, it is a symlink) that is ~/.jfsw before launching the expansion, and then put it back after. Seems to be working. That way it still thinks it's using ~/.jfsw, they just end up somewhere else.

s1eve-mcdichae1 avatar Mar 19 '22 18:03 s1eve-mcdichae1