mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Make TextureManager.GetTexture return value non-nullable (#1342)
This commit is contained in:
parent
d1c70096cf
commit
342e1bc06c
1 changed files with 3 additions and 1 deletions
|
|
@ -203,7 +203,9 @@ internal class TextureManager : IDisposable, IServiceType, ITextureSubstitutionP
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="file">The texture to obtain a handle to.</param>
|
/// <param name="file">The texture to obtain a handle to.</param>
|
||||||
/// <returns>A texture wrap that can be used to render the texture.</returns>
|
/// <returns>A texture wrap that can be used to render the texture.</returns>
|
||||||
public IDalamudTextureWrap? GetTexture(TexFile file)
|
/// <exception cref="InvalidOperationException">Thrown when the graphics system is not available yet. Relevant for plugins when LoadRequiredState is set to 0 or 1.</exception>
|
||||||
|
/// <exception cref="NotSupportedException">Thrown when the given <see cref="TexFile"/> is not supported. Most likely is that the file is corrupt.</exception>
|
||||||
|
public IDalamudTextureWrap GetTexture(TexFile file)
|
||||||
{
|
{
|
||||||
ArgumentNullException.ThrowIfNull(file);
|
ArgumentNullException.ThrowIfNull(file);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue