diff --git a/Runtime/CoreLayer/EOSCore.cs b/Runtime/CoreLayer/EOSCore.cs index bc782d0..fc7dbc3 100644 --- a/Runtime/CoreLayer/EOSCore.cs +++ b/Runtime/CoreLayer/EOSCore.cs @@ -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); + } } } } diff --git a/package.json b/package.json index 3d34291..fb4ebe2 100644 --- a/package.json +++ b/package.json @@ -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",