Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit 67ecaee

Browse files
authored
Merge pull request #62 from sepluginloader/dev
v1.12.5
2 parents 6d2de4d + 28e1993 commit 67ecaee

File tree

5 files changed

+18
-46
lines changed

5 files changed

+18
-46
lines changed

PluginLoader/GUI/ProfilesMenu.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ private void OnItemSelected(MyGuiControlTable table, MyGuiControlTable.EventArgs
9595

9696
private void OnItemDoubleClicked(MyGuiControlTable table, MyGuiControlTable.EventArgs args)
9797
{
98-
if (table.GetRow(args.RowIndex)?.UserData is Profile p)
98+
int rowIndex = args.RowIndex;
99+
if (rowIndex >= 0 && rowIndex < table.RowsCount && table.GetRow(rowIndex)?.UserData is Profile p)
99100
LoadProfile(p);
100101
}
101102

PluginLoader/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace avaness.PluginLoader
2121
{
2222
public class Main : IHandleInputPlugin
2323
{
24-
const string HarmonyVersion = "2.2.2.0";
24+
const string HarmonyVersion = "2.3.3.0";
2525

2626
public static Main Instance;
2727

PluginLoader/PluginLoader.csproj

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
<PlatformTarget>x64</PlatformTarget>
3535
</PropertyGroup>
3636
<ItemGroup>
37-
<Reference Include="0Harmony, Version=2.2.2.0, Culture=neutral, processorArchitecture=MSIL">
38-
<HintPath>..\packages\Lib.Harmony.2.2.2\lib\net48\0Harmony.dll</HintPath>
39-
</Reference>
4037
<Reference Include="Microsoft.CodeAnalysis">
4138
<HintPath>..\Bin64\Microsoft.CodeAnalysis.dll</HintPath>
4239
<Private>False</Private>
@@ -45,33 +42,9 @@
4542
<HintPath>..\Bin64\Microsoft.CodeAnalysis.CSharp.dll</HintPath>
4643
<Private>False</Private>
4744
</Reference>
48-
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
49-
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
50-
</Reference>
51-
<Reference Include="NuGet.Common, Version=6.6.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
52-
<HintPath>..\packages\NuGet.Common.6.6.1\lib\net472\NuGet.Common.dll</HintPath>
53-
</Reference>
54-
<Reference Include="NuGet.Configuration, Version=6.6.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
55-
<HintPath>..\packages\NuGet.Configuration.6.6.1\lib\net472\NuGet.Configuration.dll</HintPath>
56-
</Reference>
57-
<Reference Include="NuGet.Frameworks, Version=6.6.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
58-
<HintPath>..\packages\NuGet.Frameworks.6.6.1\lib\net472\NuGet.Frameworks.dll</HintPath>
59-
</Reference>
6045
<Reference Include="Microsoft.CSharp">
6146
<Private>False</Private>
6247
</Reference>
63-
<Reference Include="NuGet.Packaging, Version=6.6.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
64-
<HintPath>..\packages\NuGet.Packaging.6.6.1\lib\net472\NuGet.Packaging.dll</HintPath>
65-
</Reference>
66-
<Reference Include="NuGet.Protocol, Version=6.6.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
67-
<HintPath>..\packages\NuGet.Protocol.6.6.1\lib\net472\NuGet.Protocol.dll</HintPath>
68-
</Reference>
69-
<Reference Include="NuGet.Resolver, Version=6.6.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
70-
<HintPath>..\packages\NuGet.Resolver.6.6.1\lib\net472\NuGet.Resolver.dll</HintPath>
71-
</Reference>
72-
<Reference Include="NuGet.Versioning, Version=6.6.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
73-
<HintPath>..\packages\NuGet.Versioning.6.6.1\lib\net472\NuGet.Versioning.dll</HintPath>
74-
</Reference>
7548
<Reference Include="Microsoft.CSharp" />
7649
<Reference Include="NLog">
7750
<HintPath>..\Bin64\NLog.dll</HintPath>
@@ -214,10 +187,21 @@
214187
<EmbeddedResource Include="splash.gif" />
215188
</ItemGroup>
216189
<ItemGroup>
217-
<None Include="packages.config" />
190+
<Content Include="deploy.bat" />
218191
</ItemGroup>
219192
<ItemGroup>
220-
<Content Include="deploy.bat" />
193+
<PackageReference Include="Lib.Harmony">
194+
<Version>2.3.3</Version>
195+
</PackageReference>
196+
<PackageReference Include="Microsoft.CSharp">
197+
<Version>4.7.0</Version>
198+
</PackageReference>
199+
<PackageReference Include="Newtonsoft.Json">
200+
<Version>13.0.3</Version>
201+
</PackageReference>
202+
<PackageReference Include="NuGet.Resolver">
203+
<Version>6.7.1</Version>
204+
</PackageReference>
221205
</ItemGroup>
222206
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
223207
<PropertyGroup>

PluginLoader/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.12.4.0")]
35-
[assembly: AssemblyFileVersion("1.12.4.0")]
34+
[assembly: AssemblyVersion("1.12.5.0")]
35+
[assembly: AssemblyFileVersion("1.12.5.0")]

PluginLoader/packages.config

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)