jfsw
jfsw copied to clipboard
Command-line options?
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?
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
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.