Skip to content

Commit

Permalink
Fix a bug where opening a non-Rimworld project causes Rider to crash …
Browse files Browse the repository at this point in the history
…while looking for the Rimwowrld game folder
  • Loading branch information
Garethp committed Aug 19, 2023
1 parent 17bc57c commit da0de06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
DotnetPluginId=ReSharperPlugin.RimworldDev
DotnetSolution=ReSharperPlugin.RimworldDev.sln
RiderPluginId=com.jetbrains.rider.plugins.rimworlddev
PluginVersion=2023.1.2
PluginVersion=2023.1.3

BuildConfiguration=Release

Expand Down
1 change: 1 addition & 0 deletions src/dotnet/ReSharperPlugin.RimworldDev/ScopeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ private static async void AddRef(ISolution solution)
for (var i = 0; i < 5; i++)
{
currentDirectory = currentDirectory.Parent;
if (currentDirectory.Exists == FileSystemPath.Existence.Missing) break;

// If we spot UnityPlayer.dll, we're in the correct directory, we'll either find our Assembly-CSharp.dll
// relative to here or not at all
Expand Down
2 changes: 1 addition & 1 deletion src/rider/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin require-restart="true">
<id>com.jetbrains.rider.plugins.rimworlddev</id>
<name>Rimworld Development Environment</name>
<version>2023.1.2</version>
<version>2023.1.3</version>
<vendor url="https://github.com/Garethp/Rider-RimworldDevelopment">Garethp</vendor>
<idea-version since-build="231" />
<depends>com.intellij.modules.rider</depends>
Expand Down

0 comments on commit da0de06

Please sign in to comment.