solve 'edge' case and pass cancellation token
This commit is contained in:
parent
0472bfe58e
commit
d3dfdd6a74
15 changed files with 208 additions and 551 deletions
|
|
@ -20,25 +20,20 @@ public class Configuration
|
|||
|
||||
public int TileCount => Columns * Rows;
|
||||
|
||||
public required int ImageCacheCapacity { get; init; }
|
||||
public required int IntegralCacheCapacity { get; init; }
|
||||
|
||||
public static Configuration Default
|
||||
{
|
||||
get
|
||||
{
|
||||
var assetPath = Environment.GetEnvironmentVariable("ASSET_PATH_RO")!;
|
||||
var assetPath = Environment.GetEnvironmentVariable("ASSET_PATH_RO");
|
||||
var cachePath = Path.Combine(Path.GetTempPath(), "d42df2a2-60ac-4dc3-a6b9-d4c04f2e08e6");
|
||||
return new Configuration
|
||||
{
|
||||
AssetPath = assetPath,
|
||||
AssetPath = assetPath!,
|
||||
CachePath = cachePath,
|
||||
Columns = 55,
|
||||
Rows = 31,
|
||||
Width = 720,
|
||||
Height = 720,
|
||||
ImageCacheCapacity = 5,
|
||||
IntegralCacheCapacity = 10,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue