mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
experimental first iteration of persistent transient resources on startup
This commit is contained in:
parent
a807a874f0
commit
9ba6827816
7 changed files with 128 additions and 47 deletions
|
|
@ -10,14 +10,6 @@ using System.Text;
|
|||
|
||||
namespace MareSynchronos.FileCache;
|
||||
|
||||
|
||||
public enum FileState
|
||||
{
|
||||
Valid,
|
||||
RequireUpdate,
|
||||
RequireDeletion
|
||||
}
|
||||
|
||||
public class FileCacheManager : IDisposable
|
||||
{
|
||||
private const string PenumbraPrefix = "{penumbra}";
|
||||
|
|
@ -227,6 +219,11 @@ public class FileCacheManager : IDisposable
|
|||
return fileCache;
|
||||
}
|
||||
|
||||
public string ResolveFileReplacement(string gamePath)
|
||||
{
|
||||
return _ipcManager.PenumbraResolvePath(gamePath);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
WriteOutFullCsv();
|
||||
11
MareSynchronos/FileCache/FileState.cs
Normal file
11
MareSynchronos/FileCache/FileState.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
using MareSynchronos.Models;
|
||||
|
||||
namespace MareSynchronos.FileCache;
|
||||
|
||||
|
||||
public enum FileState
|
||||
{
|
||||
Valid,
|
||||
RequireUpdate,
|
||||
RequireDeletion
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue