Skip to content

Commit

Permalink
Fix old maps having 0 bpm
Browse files Browse the repository at this point in the history
  • Loading branch information
FunOrange committed May 7, 2020
1 parent 3a5bf6a commit 1d38a0c
Show file tree
Hide file tree
Showing 7 changed files with 376 additions and 365 deletions.
Binary file modified .vs/osu-trainer/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
11 changes: 11 additions & 0 deletions osu-trainer/FsBeatmapParser/TimingPoints.fs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ let tryParseTimingPoint line : TimingPoint option =
uninherited = ui;
effects = fx;
}))
| [Decimal t; Decimal bl; Int m; Int ss; Int si; Int v] -> // v5 doesn't have inherited timing points or effects
Some(TimingPoint({
time = int t; // some maps save this as decimal...
beatLength = bl;
meter = m;
sampleSet = ss;
sampleIndex = si;
volume = v;
uninherited = true;
effects = 0;
}))
| _ -> Some(Comment(line))

let timingPointToString tp =
Expand Down
726 changes: 363 additions & 363 deletions osu-trainer/MainForm.Designer.cs

Large diffs are not rendered by default.

Binary file removed osu-trainer/osu-trainer-v1.1.rar
Binary file not shown.
Binary file removed osu-trainer/osu-trainer-v12.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions osu-trainer/osu-trainer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
<MapFileExtensions>true</MapFileExtensions>
<PublisherName>funorange</PublisherName>
<AutorunEnabled>true</AutorunEnabled>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.2.0.0</ApplicationVersion>
<ApplicationRevision>2</ApplicationRevision>
<ApplicationVersion>1.2.0.2</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down
Binary file removed osu-trainer/osu-trainer.rar
Binary file not shown.

0 comments on commit 1d38a0c

Please sign in to comment.