Interrupt / systemshock

Shockolate - A minimalist and cross platform System Shock source port.
GNU General Public License v3.0
806 stars 65 forks source link

Portable prefs option + Add more settings to prefs #262

Closed donnierussellii closed 5 years ago

donnierussellii commented 5 years ago

If portable.txt file exists in game folder, prefs.txt and keybinds.txt will reside with it.

Add message length (normal/terse) and audiolog setting (text/audio/both) to prefs file. Don't load audiolog setting from saved game.

Fix message length button in options setting wrong variable.

Fix ghost mouse cursor when opening settings while cursor is in settings area in full 3d mode.

Interrupt commented 5 years ago

Instead of looking for a portable.txt file, could we just check if those preference files exist in the local directory before asking SDL to find them? Having to put a magic file in a certain place to change app logic just seems a bit weird.

donnierussellii commented 5 years ago

I've seen at least one program do this kind of thing before. The reason is that the dev can just distribute a zip file with the magic file included and call it a portable version.

Anyway, I changed it to look for prefs, keybinds in exe folder.

Github is acting weird; the commit sometimes doesn't show up.

donnierussellii commented 5 years ago

Another, final commit.