public bool InitEditorRendererSubsystem()
 {
     if (EditorRS == null)
     {
         try
         {
             EditorRS = new EditorRendererSubsystem();
             EditorRS.Init(EditorUserSettings.UserSettings.VD2Path);
         }
         catch (Exception ex)
         {
             VoidDestroyer2DataEditor.UI.ErrorMessageDialog errordialog = new VoidDestroyer2DataEditor.UI.ErrorMessageDialog();
             errordialog.ErrorTitleText   = "Editor Renderer Subsystem failed to initialize!";
             errordialog.ErrorMessageText = "Are you missing a dependency or runtime? Contact Draco at [email protected] if you need help. \r\nIf you have built from source please ensure you are building for x64, x86/any cpu won't work.\r\n" + ex.Message + ex.StackTrace;
             while (ex.InnerException != null)
             {
                 ex = ex.InnerException;
                 errordialog.ErrorMessageText += "\r\n" + ex.Message + ex.StackTrace;
             }
             errordialog.ShowDialog();
             return(false);
         }
     }
     return(true);
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(EditorRendererSubsystem obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }