mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-24 21:48:35 +01:00
Compare commits
2 commits
f6c59dc403
...
543560feac
Author | SHA1 | Date | |
---|---|---|---|
543560feac | |||
9ef5c35e52 |
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue