Skip to content

Commit

Permalink
detect out of date
Browse files Browse the repository at this point in the history
  • Loading branch information
kianzarrin committed Dec 13, 2022
1 parent 342689d commit 4a7192c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions LoadOrder/Util/ContentUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,7 @@ public static class ContentUtil {
if (Directory.Exists(path)) {
foreach (string filePAth in Directory.GetFiles(path, "*", SearchOption.AllDirectories)) {
string ext = Path.GetExtension(filePAth);
//if (ext == ".dll" || ext == ".crp" || ext == ".png")
{
if (Path.GetFileName(path) != EXCLUDED_FILE_NAME) {
DateTime lastWriteTimeUtc = File.GetLastWriteTimeUtc(filePAth);
if (lastWriteTimeUtc > dateTime) {
dateTime = lastWriteTimeUtc;
Expand Down
8 changes: 5 additions & 3 deletions LoadOrderInjections/Injections/SubscriptionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,11 @@ public static string ToSTR(this ref UGCDetails result)
DateTime dateTime = DateTime.MinValue;
if(Directory.Exists(modPath)) {
foreach(string path in Directory.GetFiles(modPath, "*", searchOption: SearchOption.AllDirectories)) {
DateTime lastWriteTimeUtc = File.GetLastWriteTimeUtc(path);
if(lastWriteTimeUtc > dateTime) {
dateTime = lastWriteTimeUtc;
if (Path.GetFileName(path) != EXCLUDED_FILE_NAME) {
DateTime lastWriteTimeUtc = File.GetLastWriteTimeUtc(path);
if (lastWriteTimeUtc > dateTime) {
dateTime = lastWriteTimeUtc;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<AssemblyVersion>1.15.5.*</AssemblyVersion>
<AssemblyVersion>1.15.6.*</AssemblyVersion>
</PropertyGroup>
</Project>

0 comments on commit 4a7192c

Please sign in to comment.