Improve performance in getpathfromresource function

mac
Miepee 3 years ago
parent a15258932a
commit 1cb85c49cf

@ -75,9 +75,8 @@ public abstract class RawMods : ModsBase
string resPath = TempDir + "/" + resource;
if (File.Exists(resPath))
File.Delete(resPath);
Image.Load(byteArray).SaveAsPng(resPath);
userResourcePath = resPath;
return userResourcePath;
File.WriteAllBytes(resPath, byteArray);
return resPath;
}
switch (nameOfResource)

Loading…
Cancel
Save