Skip to content

Commit

Permalink
More fixes for the costume parser
Browse files Browse the repository at this point in the history
  • Loading branch information
RadioActivitii committed Nov 1, 2020
1 parent f3b7707 commit b0a38c1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
10 changes: 10 additions & 0 deletions StoDemoLauncher/Parser/CostumeParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public override void NewLine(string line, int lineNumber)
this.Costumetype = "Psubstitutecostume";
this.Costumename = line.Trim().Substring(15);
}
if (inCostumev5Section && Costumetype.Equals("") && line.Trim().StartsWith("Pcdestructibleobjectcostume"))
{
this.Costumetype = "Pcdestructibleobjectcostume";
this.Costumename = line.Trim().Substring(28);
}

if (line.Trim().StartsWith("CostumeV5"))
{
Expand Down Expand Up @@ -84,6 +89,11 @@ public override void NewLine(string line, int lineNumber)
this.Costumetype = "pSubstituteCostume";
this.Costumename = line.Trim().Substring(15);
}
if (inCostumev5Section && Costumetype.Equals("") && line.Trim().StartsWith("pcDestructibleObjectCostume"))
{
this.Costumetype = "pcDestructibleObjectCostume";
this.Costumename = line.Trim().Substring(28) + " (Ignore This)";
}

if (inCostumev5Section && line.Trim().StartsWith("}") && braceLevel - 1 == lastCostumev5BraceLevel)
{
Expand Down
6 changes: 5 additions & 1 deletion StoDemoLauncher/Patchnotes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
2.11.0
2.11.1

- More fixes for the costume parser

2.11.0

- Fixed issue stopping old pre-House Shattered Demos from appearing
- Added option to launch demos without the demorecord UI (hint: the gold button!)
Expand Down
6 changes: 3 additions & 3 deletions StoDemoLauncher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: AssemblyTitle("Star Trek Online Demo Launcher")]
[assembly: AssemblyDescription("Runs demo files recorded with Star Trek Online.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Thon's Eternal Nightmares")]
[assembly: AssemblyCompany("twitter.com/radioactivitii")]
[assembly: AssemblyProduct("Star Trek Online Demo Launcher")]
[assembly: AssemblyCopyright("Public Domain")]
[assembly: AssemblyTrademark("This application is not affiliated, developed or endorsed by Cryptic Studios or Perfect World. All trademarks are the property of their respective owners.")]
Expand All @@ -33,6 +33,6 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.11.0.0")]
[assembly: AssemblyFileVersion("2.11.0.0")]
[assembly: AssemblyVersion("2.11.1.0")]
[assembly: AssemblyFileVersion("2.11.1.0")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]

0 comments on commit b0a38c1

Please sign in to comment.