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,8 +529,11 @@ namespace NewHorizons.Builder.Props
|
||||
// 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")));
|
||||
}
|
||||
else
|
||||
{
|
||||
imageLoader.PathsToLoad.Add((i, Path.Combine(Instance.ModHelper.Manifest.ModFolderPath, "Assets/textures/blank_slide_reel.png")));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (useInvertedCache && cacheExists)
|
||||
@ -538,8 +541,11 @@ namespace NewHorizons.Builder.Props
|
||||
// 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)));
|
||||
}
|
||||
else
|
||||
{
|
||||
imageLoader.PathsToLoad.Add((i, Path.Combine(mod.ModHelper.Manifest.ModFolderPath, slideInfo.imagePath)));
|
||||
}
|
||||
}
|
||||
|
||||
AddModules(slideInfo, ref slide, mod);
|
||||
|
||||
@ -548,15 +554,19 @@ namespace NewHorizons.Builder.Props
|
||||
|
||||
if (cacheExists)
|
||||
{
|
||||
if (useInvertedCache)
|
||||
{
|
||||
invertedImageLoader.Start(true);
|
||||
}
|
||||
if (useAtlasCache)
|
||||
{
|
||||
atlasImageLoader.Start(false);
|
||||
}
|
||||
// When using the inverted cache we never need the regular images
|
||||
if (useInvertedCache)
|
||||
{
|
||||
invertedImageLoader.Start(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
imageLoader.Start(true);
|
||||
}
|
||||
|
||||
return (invertedImageLoader, atlasImageLoader, imageLoader);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user