mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Revert "ImageUtilities.cs: remove back compat thing as no released mod uses it"
This reverts commit 14c03c49b292d95714ab7f0630003f35a189f3c7.
This commit is contained in:
parent
b1daa02d1f
commit
f3fd47dfb7
@ -28,6 +28,8 @@ namespace NewHorizons.Utility.Files
|
|||||||
return _textureCache.ContainsKey(key);
|
return _textureCache.ContainsKey(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// needed for backwards compat :P
|
||||||
|
public static Texture2D GetTexture(IModBehaviour mod, string filename, bool useMipmaps, bool wrap) => GetTexture(mod, filename, useMipmaps, wrap, false);
|
||||||
// bug: cache only considers file path, not wrap/mips/linear. oh well
|
// bug: cache only considers file path, not wrap/mips/linear. oh well
|
||||||
public static Texture2D GetTexture(IModBehaviour mod, string filename, bool useMipmaps = true, bool wrap = false, bool linear = false)
|
public static Texture2D GetTexture(IModBehaviour mod, string filename, bool useMipmaps = true, bool wrap = false, bool linear = false)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user