Skip to content

Commit

Permalink
Fix installation path check
Browse files Browse the repository at this point in the history
  • Loading branch information
RobProductions committed Mar 16, 2023
1 parent 612a8d5 commit 9e6188a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
25 changes: 15 additions & 10 deletions Runtime/CoreLayer/EOSCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,28 @@ public static PlatformInterface Init(EOSInitSet initSet, string pathToOpenEOS)
var dirInfo = new DirectoryInfo(pathToOpenEOS);
if(!dirInfo.Exists)
{
LogEOS("Warning: pathToOpenEOS does not exist! Ensure that it leads to the installed package directory.");
}
else if(dirInfo.Name != "OpenEOS")
{
LogEOS("Warning: Provided pathToOpenEOS did not end in OpenEOS! Ensure that it leads to the installed package.");
LogEOS("Warning: pathToOpenEOS does not exist! Ensure that it leads to the installed OpenEOS package directory.");
}
else
{
var finalPathToPlugins = Path.Combine(pathToOpenEOS, "Runtime/EOSSDK/SDK/Plugins/");
try
var pluginsInfo = new DirectoryInfo(finalPathToPlugins);
if(!pluginsInfo.Exists)
{
LoadEditorLibraries(finalPathToPlugins);
LogEOS("Warning: Path to SDK/Plugins does not exist! Ensure that pathToOpenEOS leads to the installed OpenEOS package directory "
+ "and that Runtime/EOSSDK/SDK exists within the directory.");
}
catch(Exception e)
else
{
LogEOS(e.Message);
LogEOS(e.StackTrace);
try
{
LoadEditorLibraries(finalPathToPlugins);
}
catch (Exception e)
{
LogEOS(e.Message);
LogEOS(e.StackTrace);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.robproductions.openeos",
"version": "1.0.2",
"version": "1.0.3",
"displayName": "OpenEOS",
"description": "A lightweight & open-source port of the Epic Online Services (EOS) SDK in Unity Package format, with minor enhancements to provide a smoother integration between Unity and EOS.",
"unity": "2020.3",
Expand Down

0 comments on commit 9e6188a

Please sign in to comment.