mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Don't bother with regular images when using the cache
This commit is contained in:
parent
90d2a1ee99
commit
c923af084b
@ -529,7 +529,10 @@ namespace NewHorizons.Builder.Props
|
|||||||
// Load the inverted images used when displaying slide reels to a screen
|
// Load the inverted images used when displaying slide reels to a screen
|
||||||
invertedImageLoader.PathsToLoad.Add((i, Path.Combine(Instance.ModHelper.Manifest.ModFolderPath, "Assets/textures/inverted_blank_slide_reel.png")));
|
invertedImageLoader.PathsToLoad.Add((i, Path.Combine(Instance.ModHelper.Manifest.ModFolderPath, "Assets/textures/inverted_blank_slide_reel.png")));
|
||||||
}
|
}
|
||||||
imageLoader.PathsToLoad.Add((i, Path.Combine(Instance.ModHelper.Manifest.ModFolderPath, "Assets/textures/blank_slide_reel.png")));
|
else
|
||||||
|
{
|
||||||
|
imageLoader.PathsToLoad.Add((i, Path.Combine(Instance.ModHelper.Manifest.ModFolderPath, "Assets/textures/blank_slide_reel.png")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -538,7 +541,10 @@ namespace NewHorizons.Builder.Props
|
|||||||
// Load the inverted images used when displaying slide reels to a screen
|
// Load the inverted images used when displaying slide reels to a screen
|
||||||
invertedImageLoader.PathsToLoad.Add((i, Path.Combine(mod.ModHelper.Manifest.ModFolderPath, INVERTED_SLIDE_CACHE_FOLDER, slideInfo.imagePath)));
|
invertedImageLoader.PathsToLoad.Add((i, Path.Combine(mod.ModHelper.Manifest.ModFolderPath, INVERTED_SLIDE_CACHE_FOLDER, slideInfo.imagePath)));
|
||||||
}
|
}
|
||||||
imageLoader.PathsToLoad.Add((i, Path.Combine(mod.ModHelper.Manifest.ModFolderPath, slideInfo.imagePath)));
|
else
|
||||||
|
{
|
||||||
|
imageLoader.PathsToLoad.Add((i, Path.Combine(mod.ModHelper.Manifest.ModFolderPath, slideInfo.imagePath)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AddModules(slideInfo, ref slide, mod);
|
AddModules(slideInfo, ref slide, mod);
|
||||||
@ -548,15 +554,19 @@ namespace NewHorizons.Builder.Props
|
|||||||
|
|
||||||
if (cacheExists)
|
if (cacheExists)
|
||||||
{
|
{
|
||||||
if (useInvertedCache)
|
|
||||||
{
|
|
||||||
invertedImageLoader.Start(true);
|
|
||||||
}
|
|
||||||
if (useAtlasCache)
|
if (useAtlasCache)
|
||||||
{
|
{
|
||||||
atlasImageLoader.Start(false);
|
atlasImageLoader.Start(false);
|
||||||
}
|
}
|
||||||
imageLoader.Start(true);
|
// When using the inverted cache we never need the regular images
|
||||||
|
if (useInvertedCache)
|
||||||
|
{
|
||||||
|
invertedImageLoader.Start(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
imageLoader.Start(true);
|
||||||
|
}
|
||||||
|
|
||||||
return (invertedImageLoader, atlasImageLoader, imageLoader);
|
return (invertedImageLoader, atlasImageLoader, imageLoader);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user