KSP-RO / RSSVE

A visual enhancement pack for the Kerbal Space Program RealSolarSystem mod.
Other
33 stars 16 forks source link

Don't save settings outside game folder #24

Closed HebaruSan closed 2 years ago

HebaruSan commented 2 years ago

Hi @Theysen and @NathanKell,

A user spotted an "orphaned GameData" folder containing some of this mod's settings (and PatchManager's settings, see linuxgurugamer/PatchManager#10) after running the game:

image

This happens because Constants.ConfigurationFilePath is a relative path, and a few of the places that use it do not prepend the game path (though some other spots do).

Now all places that use this variable prepend the game path, so these files and folders should save to the right folder.