thezerothcat / LaMulanaRandomizer

Randomizer for La-Mulana Remake
https://github.com/thezerothcat/LaMulanaRandomizer/wiki
BSD 2-Clause "Simplified" License
51 stars 17 forks source link

Add checks for Steam Linux install locations #131

Open Nat-the-Chicken opened 1 year ago

Nat-the-Chicken commented 1 year ago

Added checks for a few common locations where Steam might install the game on Linux, checking a Linux-specific environment variable to get the user directory. When tested, it was able to find the game when it was installed at the first listed location. I noticed this code comment when I was hunting through the files figuring them out, and it seemed like the perfect thing for me to add, since I run the game and randomizer entirely on Ubuntu with Proton. (Also, it's purely for QoL during first setup, and won't break if the user's file tree is in some bizarre configuration.) As a possible next step, this section of Settings.java could also be modified to check common save data locations, including locations used by Proton as well as Windows and Linux builds running natively, and determine which location is in use by whether it contains a lamu.dat file.

I had plans for bigger contributions, especially to do with seed export/import, but I've been told to "start small," and also I'm not very good at using git yet. So I'm not going to overhaul anything right now, and if I do, it may end up confined to my own fork.