1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-24 21:48:35 +01:00

Compare commits

...

2 commits

2 changed files with 3 additions and 0 deletions

View file

@ -43,6 +43,7 @@ Additions
Improvements Improvements
- Use TitleContainer for opening streams where possible - Use TitleContainer for opening streams where possible
- Set GraphicsResource Name when loading assets using RawContentManager
## 5.1.0 ## 5.1.0
### MLEM ### MLEM

View file

@ -67,6 +67,8 @@ namespace MLEM.Data.Content {
this.LoadedAssets[assetName] = t; this.LoadedAssets[assetName] = t;
if (t is IDisposable d && !this.disposableAssets.Contains(d)) if (t is IDisposable d && !this.disposableAssets.Contains(d))
this.disposableAssets.Add(d); this.disposableAssets.Add(d);
if (t is GraphicsResource r)
r.Name = assetName;
return t; return t;
} }
} catch (FileNotFoundException) { } catch (FileNotFoundException) {