The game in this how-to is Open Adventure, a Unix/C port of the original Colossal Cave Adventure game from 1976.
To have the game automatically load and save a user's game state, build the project with the
ADVENT_AUTOSAVE flag. This adds the
-a <filename> option to automatically load/restore a user's saved game (or create it if it doesn't exist), and then save it when the user quits or if they're disconnected or run out of time.
When building, specify the (new) AUTOSAVE option:
$ make CFLAGS=-DADVENT_AUTOSAVE
Once built, you set it up in SCFG like so:
Name Adventure Internal Code ADVENTUR Start-up Directory ../xtrn/adventure Command Line advent -a %juser/%4.adventure Clean-up Command Line Execution Cost None Access Requirements UNIX Execution Requirements Multiple Concurrent Users Yes I/O Method Standard, No Echo Native Executable/Script Yes Use Shell or New Context No Modify User Data No Execute on Event No Pause After Execution Yes Disable Local Display No BBS Drop File Type None
Now, I did not try to build and run this on Windows and likely won't attempt that, so this is likely a Unix/Linux door game only.