mirror of
https://gitlab.com/Syroot/Worms.git
synced 2025-03-04 09:25:22 +03:00
Dump KSF images with 0 based index.
This commit is contained in:
parent
06a2cad03b
commit
26363c9165
@ -37,7 +37,7 @@ namespace Syroot.Worms.Scratchpad
|
||||
Directory.CreateDirectory(pngKsfFolder);
|
||||
for (int i = 0; i < ksf.Images.Count; i++)
|
||||
{
|
||||
string pngFileName = Path.ChangeExtension((i + 1).ToString(), "png");
|
||||
string pngFileName = Path.ChangeExtension(i.ToString(), "png");
|
||||
Image image = ksf.Images[i];
|
||||
if (image != null)
|
||||
image.Save(Path.Combine(pngKsfFolder, pngFileName), ImageFormat.Png);
|
||||
|
Loading…
x
Reference in New Issue
Block a user