Skip to content

Commit

Permalink
Merge pull request #303 from Aragas/dev
Browse files Browse the repository at this point in the history
v5.0.3
  • Loading branch information
Aragas authored Oct 31, 2022
2 parents ec1ba3e + 0e0f070 commit 9ab7d1c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<PropertyGroup>
<GameVersion>1.0.0</GameVersion>
<Version>5.0.2</Version>
<Version>5.0.3</Version>
<HarmonyVersion>2.2.2</HarmonyVersion>
<ButterLibVersion>2.3.1</ButterLibVersion>
<UIExtenderExVersion>2.3.0</UIExtenderExVersion>
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 5.0.3
Game Versions: v1.0.0
* CTD fix
---------------------------------------------------------------------------------------------------
Version: 5.0.2
Game Versions: v1.0.0
* Fixed path being incorrect
Expand Down
8 changes: 4 additions & 4 deletions src/MCM.Bannerlord/MCMImplementationSubModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ static void MoveDirectory(string source, string target)
}
catch { }
}
if (Directory.GetFiles(oldPath) is { Length: 0 } && Directory.GetDirectories(oldPath) is { Length: 0})
Directory.Delete(oldPath, true);
if (Directory.GetFiles(oldConfigPath) is { Length: 0 } && Directory.GetDirectories(oldConfigPath) is { Length: 0})
Directory.Delete(oldConfigPath, true);
}
if (Directory.GetFiles(oldPath) is { Length: 0 } && Directory.GetDirectories(oldPath) is { Length: 0})
Directory.Delete(oldPath, true);
if (Directory.GetFiles(oldConfigPath) is { Length: 0 } && Directory.GetDirectories(oldConfigPath) is { Length: 0})
Directory.Delete(oldConfigPath, true);
}
}
}

0 comments on commit 9ab7d1c

Please sign in to comment.