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