Merge pull request #27 from Casimir255/PluginLoader

Plugin loader
This commit is contained in:
Garrett
2022-05-26 21:59:57 -05:00
committed by GitHub
2 changed files with 13 additions and 4 deletions

View File

@@ -33,6 +33,6 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.4.01.0")] [assembly: AssemblyVersion("1.4.02.0")]
[assembly: AssemblyFileVersion("1.4.01.0")] [assembly: AssemblyFileVersion("1.4.02.0")]
[assembly: NeutralResourcesLanguage("en")] [assembly: NeutralResourcesLanguage("en")]

View File

@@ -255,9 +255,18 @@ namespace SeamlessClientPlugin.SeamlessTransfer
MySession.Static.CustomLoadingScreenText = TargetWorld.Checkpoint.CustomLoadingScreenText; MySession.Static.CustomLoadingScreenText = TargetWorld.Checkpoint.CustomLoadingScreenText;
MySession.Static.CustomSkybox = TargetWorld.Checkpoint.CustomSkybox; MySession.Static.CustomSkybox = TargetWorld.Checkpoint.CustomSkybox;
try
{
MySession.Static.Gpss = new MyGpsCollection();
MySession.Static.Gpss.LoadGpss(TargetWorld.Checkpoint);
}
catch(Exception ex)
{
SeamlessClient.TryShow($"An error occured while loading GPS points! You will have an empty gps list! \n {ex.ToString()}");
}
MySession.Static.Gpss = new MyGpsCollection();
MySession.Static.Gpss.LoadGpss(TargetWorld.Checkpoint);
MyRenderProxy.RebuildCullingStructure(); MyRenderProxy.RebuildCullingStructure();
//MySession.Static.Toolbars.LoadToolbars(checkpoint); //MySession.Static.Toolbars.LoadToolbars(checkpoint);