Skip to content

Commit 42144d6

Browse files
Removed TTT dependency, overhauled mount validity checking, added extra debug logging
1 parent 1f30d19 commit 42144d6

File tree

12 files changed

+654
-267
lines changed

12 files changed

+654
-267
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ root = true
44
indent_style = tab
55
indent_size = 4
66
trim_trailing_whitespace = true
7+
dotnet_diagnostic.IDE0066.severity = none
78

89
[*.md]
910
trim_trailing_whitespace = false
11+
12+
[*.txt]
13+
indent_style = tab
14+
indent_size = 4
15+
trim_trailing_whitespace = true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,3 +363,5 @@ MigrationBackup/
363363
# Fody - auto-generated XML schema
364364
FodyWeavers.xsd
365365
/img
366+
367+
AutoMount/Reference/*.*

AutoMount.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.3.32825.248
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoMount", "AutoMount\AutoMount.csproj", "{F3501134-B86C-49F5-9779-D700E83FAF1F}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoMount", "AutoMount\AutoMount.csproj", "{F3501134-B86C-49F5-9779-D700E83FAF1F}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution

AutoMount/AutoMount.csproj

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
99
<LangVersion>preview</LangVersion>
1010
<RunPostBuildEvent>Always</RunPostBuildEvent>
11-
<AssemblyVersion>1.1.0</AssemblyVersion>
12-
<FileVersion>1.1.0</FileVersion>
11+
<AssemblyVersion>1.2.0</AssemblyVersion>
12+
<FileVersion>1.2.0</FileVersion>
1313
</PropertyGroup>
1414

1515
<ItemGroup>
@@ -60,10 +60,6 @@
6060
<HintPath>$(WrathPath)\Mods\ModMenu\ModMenu.dll</HintPath>
6161
<Private>False</Private>
6262
</Reference>
63-
<Reference Include="TabletopTweaks-Core">
64-
<HintPath>$(WrathPath)\Mods\TabletopTweaks-Core\TabletopTweaks-Core.dll</HintPath>
65-
<Private>False</Private>
66-
</Reference>
6763
</ItemGroup>
6864

6965
<ItemGroup>
@@ -81,16 +77,22 @@
8177
</EmbeddedResource>
8278
</ItemGroup>
8379

84-
<ItemGroup>
85-
<None Update="Info.json">
86-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
87-
</None>
88-
</ItemGroup>
89-
90-
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
91-
<Exec Command="start XCOPY /Y /R &quot;$(TargetDir)\$(TargetName).*&quot; &quot;$(WrathPath)\Mods\$(ProjectName)\&quot;&#xD;&#xA;start XCOPY /Y /R &quot;$(ProjectDir)\Info.json&quot; &quot;$(WrathPath)\Mods\$(ProjectName)\&quot;" />
80+
<Target Name="Deploy" AfterTargets="Build">
81+
<ItemGroup>
82+
<Files1 Include="$(OutDir)\**\AutoMount.*" />
83+
</ItemGroup>
84+
<ItemGroup>
85+
<Files2 Include="$(ProjectDir)\Info.json" />
86+
</ItemGroup>
87+
88+
<Copy
89+
SourceFiles="@(Files1);@(Files2)"
90+
DestinationFolder="$(WrathPath)\Mods\$(MSBuildProjectName)"
91+
OverwriteReadOnlyFiles="true"
92+
SkipUnchangedFiles="false"
93+
/>
9294
</Target>
93-
95+
9496
<Target Name="Publicize" AfterTargets="Clean">
9597
<ItemGroup>
9698
<Assemblies Include="$(WrathPath)\Wrath_Data\Managed\Assembly-CSharp.dll" />

AutoMount/Events.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class OnAreaLoad : IAreaHandler
66
{
77
public void OnAreaDidLoad()
88
{
9-
if (Settings.IsEnabled(Settings.MountOnAreaEnter))
9+
if (Settings.IsOnAreaMountEnabled())
1010
{
1111
Main.ForceMount();
1212
}

AutoMount/Info.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
{
1+
{
22
"Id": "AutoMount",
33
"DisplayName": "Auto Mount for TabletopTweaks",
44
"Author": "Zepheon, DarthParametric",
5-
"Version": "1.1.1",
6-
"ManagerVersion": "0.27.14",
7-
"Requirements": [ "TabletopTweaks-Core-0.7.6", "TabletopTweaks-Base-2.6.7", "ModMenu-1.3.2" ],
8-
"LoadAfter": [ "MewsiferConsole.Mod", "TabletopTweaks-Core", "TabletopTweaks-Base", "MorePartySlots" ],
5+
"Version": "1.2.0",
6+
"GameVersion": "2.3.3",
7+
"ManagerVersion": "0.28.2",
8+
"Requirements": [ "ModMenu-1.3.2" ],
9+
"LoadAfter": [ "MewsiferConsole.Mod", "0ToyBox0", "TabletopTweaks-Core", "TabletopTweaks-Base", "MorePartySlots" ],
910
"AssemblyName": "AutoMount.dll",
1011
"EntryMethod": "AutoMount.Main.Load",
1112
"Repository": "https://raw.githubusercontent.com/DarthParametric/AutoMount_for_TabletopTweaks/master/AutoMount/Repository.json",

0 commit comments

Comments
 (0)