c-true / FsConnect

Wrapper for Flight Simulator 2020 SimConnect library
59 stars 19 forks source link

May not have permission to write SimConnect.cfg #4

Closed TimianHeber closed 4 years ago

TimianHeber commented 4 years ago

The SimConnect.cfg file is currently written to Executing assembly's location. This may be in an area where the process does not have access to write to.

Consider writing to the user's documents folder as the SimConnect.dll also looks here.

josh2112 commented 4 years ago

Agreed... even if the file already exists, FsConnect insists on trying to overwrite it. Maybe just have a SimConnect constructor without hostname and port which will use the existing SimConnect.cfg?

TimianHeber commented 4 years ago

Good idea, thanks!

I'll fix this and push a new version within the end of the week with support for either specifying location of SimConnect.cfg or parameterless constructor for using existing.