TheStarport / FLHook

A Server Improvement for Freelancer.
GNU General Public License v3.0
30 stars 16 forks source link

Unable to properly handle non-default save folder locations #205

Closed IrateRedKite closed 1 year ago

IrateRedKite commented 1 year ago

When starting Flhook, the program is sometimes unable to handle non-default save locations.

In an out of the box Windows 10 install, the Documents folder can sometimes end up being rolled into OneDrive. This can cause issues as source/Memory/SaveData.cpp looks for a specific path matching %UserProfile%\My Documents\My Games\Freelancer on line 20.

My out of the box Documents path is C:\Users\Ruper\OneDrive\Documents\My Games\Freelancer, and Windows is set up in a way that makes it prohibitively difficult to either change or circumvent. Flhook should probably be able handle these cases and use whatever variable flserver uses to determine the save location.

image image

oliverpechey commented 1 year ago

Laz pointed out this is configurable in Freelancer.ini now by adding a SavePath variable. Testing

oliverpechey commented 1 year ago

That was the problem. Sorted