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,8 +141,15 @@ struct WneStoryProgress
|
|||||||
this.SessionId = source.SessionId;
|
this.SessionId = source.SessionId;
|
||||||
this.FileSize = source.FileSize;
|
this.FileSize = source.FileSize;
|
||||||
this.FileCaught = source.CaughtPayloadBytes;
|
this.FileCaught = source.CaughtPayloadBytes;
|
||||||
if (this.Filename.StartsWith("\\"))
|
if (!string.IsNullOrEmpty(this.Filename))
|
||||||
this.Filename = this.Filename.Substring(1);
|
{
|
||||||
|
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 string Filename { get; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user