Skip to content

Commit

Permalink
fix "Not in Space Engineers folder"
Browse files Browse the repository at this point in the history
  • Loading branch information
Rynchodon committed Jul 8, 2017
1 parent f371553 commit ced1ba1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions PluginLoader/Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,15 @@ public Loader(bool start)
_instance = this;
_directory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

string bin64 = PathExtensions.Combine(Path.GetDirectoryName(_directory), "Bin64");
if (!File.Exists(PathExtensions.Combine(bin64, "SpaceEngineers.exe")) && !File.Exists(PathExtensions.Combine(bin64, "SpaceEngineersDedicated.exe")))
throw new Exception("Not in Space Engineers folder: " + _directory);
string seDirectory = Path.GetDirectoryName(_directory);
if (!File.Exists(PathExtensions.Combine(seDirectory, "Bin64", "SpaceEngineers.exe")) &&
!File.Exists(PathExtensions.Combine(seDirectory, "DedicatedServer64", "SpaceEngineersDedicated.exe")) &&
!File.Exists(PathExtensions.Combine(seDirectory, "Bin64", "SpaceEngineersDedicated.exe"))) // when DS is locally compiled
{
string msg = "Not in Space Engineers folder: " + _directory;
Logger.WriteLine(msg);
throw new Exception(msg);
}

_data = new PluginData(_directory);

Expand Down
2 changes: 1 addition & 1 deletion PluginManager/Properties/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1.0")]

0 comments on commit ced1ba1

Please sign in to comment.