Mod Edit Window: Highlight paths of files on player

This commit is contained in:
Exter-N 2023-11-29 14:31:47 +01:00
parent 43c6b52d0b
commit 18d38a9974
5 changed files with 45 additions and 14 deletions

View file

@ -10,6 +10,7 @@ public class FileRegistry : IEquatable<FileRegistry>
public Utf8RelPath RelPath { get; private init; }
public long FileSize { get; private init; }
public int CurrentUsage;
public bool IsOnPlayer;
public static bool FromFile(DirectoryInfo modPath, FileInfo file, [NotNullWhen(true)] out FileRegistry? registry)
{
@ -26,6 +27,7 @@ public class FileRegistry : IEquatable<FileRegistry>
RelPath = relPath,
FileSize = file.Length,
CurrentUsage = 0,
IsOnPlayer = false,
};
return true;
}