Allow delivery of unnamed files in WNE.
Some checks failed
🚀 Pack skyscraper8 / make-zip (push) Failing after 31s

This commit is contained in:
Fey 2026-05-05 23:35:45 +02:00
parent fa91364b3b
commit a6930d79fc

View File

@ -141,9 +141,16 @@ struct WneStoryProgress
this.SessionId = source.SessionId;
this.FileSize = source.FileSize;
this.FileCaught = source.CaughtPayloadBytes;
if (!string.IsNullOrEmpty(this.Filename))
{
if (this.Filename.StartsWith("\\"))
this.Filename = this.Filename.Substring(1);
}
else
{
this.Filename = String.Format("skyscraper8_wne_{0}.bin", SessionId);
}
}
public string Filename { get; }
public uint SessionId { get; }