Swampsoft / solitaire

Shenzhen I/O Solitaire Clone
MIT License
37 stars 2 forks source link

SHENZHEN_PATH leads to incorrect folder #12

Open camdendotlol opened 3 years ago

camdendotlol commented 3 years ago

At this line here: https://github.com/Swampsoft/solitaire/blob/master/src/main.rs#L28

The constant points to .local/share/Steam/SteamApps/common/SHENZHEN IO/Content/ but the SteamApps folder is incorrectly cased. This game creates that folder if it doesn't exist, which causes an error to pop up when launching Steam:

Warning
/home/camden/.local/share/Steam has both 'SteamApps' and 'steamapps' directories.
This will cause problems. Please fix manually and only keep 'steamapps'

The correct path is .local/share/Steam/steamapps/common/SHENZHEN IO/Content/, with steamapps in all lowercase.

Not sure how much this is affected by distro/etc, but I am on Fedora 34 using Steam through RPM Fusion.

mbillingr commented 3 years ago

Thanks for reporting this!

Apparently, they changed the path name: https://github.com/ValveSoftware/Proton/issues/4206

mbillingr commented 3 years ago

Actually, this is only partially fixed.

We should only read Steam folders if they exist but not create any missing folders there.