diff --git a/Dalamud/Interface/Internal/TextureManager.cs b/Dalamud/Interface/Internal/TextureManager.cs index ba0a7045d..ed7065456 100644 --- a/Dalamud/Interface/Internal/TextureManager.cs +++ b/Dalamud/Interface/Internal/TextureManager.cs @@ -152,7 +152,7 @@ internal class TextureManager : IDisposable, IServiceType, ITextureSubstitutionP /// The path to the texture in the game's VFS. /// Prevent Dalamud from automatically unloading this texture to save memory. Usually does not need to be set. /// Null, if the icon does not exist, or a texture wrap that can be used to render the texture. - public TextureManagerTextureWrap? GetTextureFromGame(string path, bool keepAlive) + public TextureManagerTextureWrap? GetTextureFromGame(string path, bool keepAlive = false) { ArgumentException.ThrowIfNullOrEmpty(path); @@ -171,7 +171,7 @@ internal class TextureManager : IDisposable, IServiceType, ITextureSubstitutionP /// The FileInfo describing the image or texture file. /// Prevent Dalamud from automatically unloading this texture to save memory. Usually does not need to be set. /// Null, if the file does not exist, or a texture wrap that can be used to render the texture. - public TextureManagerTextureWrap? GetTextureFromFile(FileInfo file, bool keepAlive) + public TextureManagerTextureWrap? GetTextureFromFile(FileInfo file, bool keepAlive = false) { ArgumentNullException.ThrowIfNull(file); return !file.Exists ? null : this.CreateWrap(file.FullName, keepAlive);