Skip to content

Commit 31a8fd7

Browse files
author
Nate West
committed
Update to 2.9.2. Fix a bit of checks for PluginData folder.
1 parent a702e4e commit 31a8fd7

File tree

6 files changed

+24
-12
lines changed

6 files changed

+24
-12
lines changed

GameData/GameData.projitems

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
</ItemGroup>
1919
<ItemGroup>
2020
<None Include="$(MSBuildThisFileDirectory)README.md" />
21-
<None Include="$(MSBuildThisFileDirectory)TimeControl\PluginData\GlobalSettings.cfg" />
2221
<None Include="$(MSBuildThisFileDirectory)TimeControl\README.md" />
2322
<None Include="$(MSBuildThisFileDirectory)TimeControl\TimeControl.version" />
2423
</ItemGroup>
0 Bytes
Binary file not shown.

GameData/TimeControl/TimeControl.version

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66
"VERSION": {
77
"MAJOR": 2,
88
"MINOR": 9,
9-
"PATCH": 1,
9+
"PATCH": 2,
1010
"BUILD": 0
1111
},
1212
"KSP_VERSION": {
1313
"MAJOR": 1,
1414
"MINOR": 4,
15-
"PATCH": 2
15+
"PATCH": 3
1616
},
1717
"KSP_VERSION_MIN": {
1818
"MAJOR": 1,
1919
"MINOR": 4,
20-
"PATCH": 2
20+
"PATCH": 3
2121
},
2222
"KSP_VERSION_MAX": {
2323
"MAJOR": 1,
2424
"MINOR": 4,
25-
"PATCH": 2
25+
"PATCH": 3
2626
}
2727
}

TimeControl/AssemblyVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
using System.Reflection;
88

9-
[assembly: AssemblyVersion("2.9.1.0")]
9+
[assembly: AssemblyVersion("2.9.2.0")]

TimeControl/GlobalSettings.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,8 +627,21 @@ private void SaveToFile(bool force)
627627
return;
628628
}
629629

630-
if (System.IO.File.Exists( globalSettingsFilePath ))
630+
if (!System.IO.Directory.Exists( PluginAssemblyUtilities.PathPluginData ))
631631
{
632+
try
633+
{
634+
System.IO.Directory.CreateDirectory( PluginAssemblyUtilities.PathPluginData );
635+
}
636+
catch (Exception ex) when (ex is System.IO.IOException || ex is UnauthorizedAccessException)
637+
{
638+
Log.Error( "Unable to create directory " + PluginAssemblyUtilities.PathPluginData, logBlockName );
639+
return;
640+
}
641+
}
642+
643+
if (System.IO.File.Exists( globalSettingsFilePath ))
644+
{
632645
try
633646
{
634647
System.IO.File.Delete( globalSettingsFilePath );

TimeControl/TimeControl.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,18 @@
104104
<ItemGroup>
105105
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
106106
<SpecificVersion>False</SpecificVersion>
107-
<HintPath>..\..\_Dependencies\KSPAssemblies_1.4.2\Assembly-CSharp.dll</HintPath>
107+
<HintPath>..\..\_Dependencies\KSPAssemblies_1.4.3\Assembly-CSharp.dll</HintPath>
108108
</Reference>
109109
<Reference Include="System">
110110
<HintPath>R:\KSP_1.2.2_dev\KSP_x64_Data\Managed\System.dll</HintPath>
111111
</Reference>
112112
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
113113
<SpecificVersion>False</SpecificVersion>
114-
<HintPath>..\..\_Dependencies\KSPAssemblies_1.4.2\UnityEngine.dll</HintPath>
114+
<HintPath>..\..\_Dependencies\KSPAssemblies_1.4.3\UnityEngine.dll</HintPath>
115115
</Reference>
116116
<Reference Include="UnityEngine.UI, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
117117
<SpecificVersion>False</SpecificVersion>
118-
<HintPath>..\..\_Dependencies\KSPAssemblies_1.4.2\UnityEngine.UI.dll</HintPath>
118+
<HintPath>..\..\_Dependencies\KSPAssemblies_1.4.3\UnityEngine.UI.dll</HintPath>
119119
</Reference>
120120
</ItemGroup>
121121
<ItemGroup>
@@ -145,8 +145,8 @@
145145
</T4ParameterValues>
146146
</ItemGroup>
147147
<PropertyGroup>
148-
<PostBuildEvent>SET KSPTest=D:\KSP\KSP_win64-1.4.2
149-
SET KSPMHTest=D:\KSP\KSP_win64-1.4.2-MH
148+
<PostBuildEvent>SET KSPTest=D:\KSP\KSP_win64-1.4.3
149+
SET KSPMHTest=D:\KSP\KSP_win64-1.4.3-MH
150150

151151
SET GameDataTarget=%25KSPTest%25\GameData\TimeControl
152152
IF EXIST %25GameDataTarget%25 (

0 commit comments

Comments
 (0)