diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-08-20 23:40:50 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-08-20 23:40:50 -0400 |
| commit | 3af4c218c0e70167db23a6303d2af30aff37d2fe (patch) | |
| tree | 927f29edcf54ab562f40f3d1c6cb69287c7f5980 /Library/PackageCache/com.unity.ide.rider@1.1.4/Rider/Editor/RiderInitializer.cs | |
| parent | b6daed0af784f4e9bc13329dd87c671b06ee1c65 (diff) | |
| download | Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.gz Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.tar.bz2 Project-Sandbox-3af4c218c0e70167db23a6303d2af30aff37d2fe.zip | |
Removed a bunch of stuff; Changes
Diffstat (limited to 'Library/PackageCache/com.unity.ide.rider@1.1.4/Rider/Editor/RiderInitializer.cs')
| -rw-r--r-- | Library/PackageCache/com.unity.ide.rider@1.1.4/Rider/Editor/RiderInitializer.cs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/Library/PackageCache/com.unity.ide.rider@1.1.4/Rider/Editor/RiderInitializer.cs b/Library/PackageCache/com.unity.ide.rider@1.1.4/Rider/Editor/RiderInitializer.cs deleted file mode 100644 index f64ee8d..0000000 --- a/Library/PackageCache/com.unity.ide.rider@1.1.4/Rider/Editor/RiderInitializer.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System;
-using System.IO;
-using UnityEngine;
-using Debug = UnityEngine.Debug;
-
-namespace Packages.Rider.Editor
-{
- internal class RiderInitializer
- {
- public void Initialize(string editorPath)
- {
- var assembly = EditorPluginInterop.EditorPluginAssembly;
- if (EditorPluginInterop.EditorPluginIsLoadedFromAssets(assembly))
- {
- Debug.LogError($"Please delete {assembly.Location}. Unity 2019.2+ loads it directly from Rider installation. To disable this, open Rider's settings, search and uncheck 'Automatically install and update Rider's Unity editor plugin'.");
- return;
- }
-
- var dllName = "JetBrains.Rider.Unity.Editor.Plugin.Full.Repacked.dll";
- var relPath = "../../plugins/rider-unity/EditorPlugin";
- if (SystemInfo.operatingSystemFamily == OperatingSystemFamily.MacOSX)
- relPath = "Contents/plugins/rider-unity/EditorPlugin";
- var dllFile = new FileInfo(Path.Combine(Path.Combine(editorPath, relPath), dllName));
-
- if (dllFile.Exists)
- {
- var bytes = File.ReadAllBytes(dllFile.FullName);
- assembly = AppDomain.CurrentDomain.Load(bytes); // doesn't lock assembly on disk
- // assembly = AppDomain.CurrentDomain.Load(AssemblyName.GetAssemblyName(dllFile.FullName)); // use this for external source debug
- EditorPluginInterop.InitEntryPoint(assembly);
- }
- else
- {
- Debug.Log($"Unable to find Rider EditorPlugin {dllFile.FullName} for Unity ");
- }
- }
- }
-}
|
