Skip to content

Commit

Permalink
Merge pull request #17 from BaseMC/develop
Browse files Browse the repository at this point in the history
Fixed path to jre
  • Loading branch information
litetex authored Mar 2, 2020
2 parents f46a21e + b7db41c commit eaaa7ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Aves/Runner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private string TryFindJavaExe()
return javaExePath;
}
else
Log.Warn("Found location of java in configuration, but was invalid. Trying to find java...");
Log.Warn($"Found location of java[='{javaExePath}'] in configuration, but was invalid. Trying to find java...");
}

javaExePath = Environment.GetEnvironmentVariable("JAVA_HOME");
Expand Down Expand Up @@ -241,7 +241,7 @@ private string BuildPath(string name, string path, string relativeParent)

private string BuildPathForExecutableLocation(string name, string path)
{
return PathBuilder.BuildPath(name, path, AppDomain.CurrentDomain.BaseDirectory);
return PathBuilder.BuildPath(name, path, Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName));
}

#endregion Init
Expand Down
2 changes: 1 addition & 1 deletion Aves/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
"aves.shared": {
"type": "Project",
"dependencies": {
"CoreFrameworkBase": "1.0.7365.34504"
"CoreFrameworkBase": "1.0.7366.38236"
}
},
"coreframeworkbase": {
Expand Down

0 comments on commit eaaa7ba

Please sign in to comment.