Allow delivery of unnamed files in WNE.
Some checks failed
🚀 Pack skyscraper8 / make-zip (push) Failing after 31s
Some checks failed
🚀 Pack skyscraper8 / make-zip (push) Failing after 31s
This commit is contained in:
parent
fa91364b3b
commit
a6930d79fc
@ -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; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user