Skip to content

Commit

Permalink
* Fix RegulatedNoise crash on Elite Dangerous startup
Browse files Browse the repository at this point in the history
* Fix version history
  • Loading branch information
stringandstickytape committed Jan 11, 2015
1 parent 4b59278 commit 47d6ea4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace RegulatedNoise
[Serializable]
public class RegulatedNoiseSettings
{
public readonly decimal Version = 1.7m;
public readonly decimal Version = 1.71m;

public string ProductsPath = "";
public string GamePath = ""; //Should Replace ProductsPath by always contain the newest FORC-FDEV dir.
Expand Down
1 change: 0 additions & 1 deletion RegulatedNoise/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,6 @@ private double DistanceInLightYears(string remoteSystemName, Point3D currentSyst

private double DistanceInLightYears(string remoteSystemName, string homeSystemName)
{
double dist;
if (!SystemLocations.ContainsKey(homeSystemName))
return double.MaxValue;

Expand Down
13 changes: 12 additions & 1 deletion RegulatedNoise/Form1.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,18 @@
</value>
</data>
<data name="textBox1.Text" xml:space="preserve">
<value>* Don't crash when calculating distances to systems that we don't know the location of
<value>v1.71
* Fix RegulatedNoise crash on Elite Dangerous startup
* Fix version history

v1.7
* station-to-station overhauled: now shows all round trips in a big list, can work in credits-per-light-year, shows outbound and return at the same time
* Merge MRmP's changes to product directory detection
* Move elite.json and station.csv to a Data subfolder
* Check at startup for a new version, and notify the user if one is found
* Fix GitHub issue #3: update station-to-station when updating rest of GUI
* Don't crash when calculating distances to systems that we don't know the location of
* fix rename-loses-source-of-data bug

v1.6
* Add new OCR Corrections form ("Edit" button on Corrections tab)
Expand Down
4 changes: 2 additions & 2 deletions RegulatedNoise/GameSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void LoadAppConfig()
{
var configFile = Path.Combine(Form1.RegulatedNoiseSettings.GamePath, "AppConfig.xml");
var serializer = new XmlSerializer(typeof (AppConfig));
using (var myFileStream = new FileStream(configFile, FileMode.Open))
using (var myFileStream = new FileStream(configFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
AppConfig = (AppConfig) serializer.Deserialize(myFileStream);
}
Expand All @@ -108,7 +108,7 @@ void LoadDisplaySettings()
{
var configFile = Path.Combine(Form1.RegulatedNoiseSettings.ProductAppData, "Graphics" ,"DisplaySettings.xml");
var serializer = new XmlSerializer(typeof(EdDisplayConfig));
using (var myFileStream = new FileStream(configFile, FileMode.Open))
using (var myFileStream = new FileStream(configFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
Display = (EdDisplayConfig)serializer.Deserialize(myFileStream);
}
Expand Down

0 comments on commit 47d6ea4

Please sign in to comment.