mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 09:32:34 +00:00
Fixed, internal: in some cases it was possible to get incorrect resource when using Plug.GetResourceStream().
This commit is contained in:
parent
70416cd95f
commit
c7d61c22ba
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ namespace CodeImp.DoomBuilder.Plugins
|
|||
public Stream GetResourceStream(string resourcename)
|
||||
{
|
||||
// Find a resource
|
||||
resourcename = "." + resourcename; //mxd. Otherwise, we can get Properties.Resources.SuperCoolMode.png while searching for CoolMode.png
|
||||
string[] resnames = asm.GetManifestResourceNames();
|
||||
foreach(string rn in resnames)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue