osu/osu.Game.Tests/Resources
Bartłomiej Dach 86588778b1 Implement fallback decoder registration
After the preparatory introduction of LineBufferedReader, it is now
possible to introduce registration of fallback decoders that won't drop
input supplied in the first line of the file.

A fallback decoder is used when the magic in the first line of the file
does not match any of the other known decoders. In such a case,
the fallback decoder is constructed and provided a LineBufferedReader
instance. The process of matching magic only peeks the first non-empty
line, so it is available for re-reading in Decode() using ReadLine().

There can be only one fallback decoder per type; a second attempt of
registering a fallback will result in an exception to avoid bugs.

To address the issue of parsing failing on badly or non-headered files,
set the legacy decoders for Beatmaps and Storyboards as the fallbacks.

Due to non-trivial logic, several new, passing unit tests with possible
edge cases also included.
2019-09-15 01:28:07 +02:00
..
Himeringo - Yotsuya-san ni Yoroshiku (RLC) [Winber1's Extreme].osu
Kozato snow - Rengetsu Ouka (_Kiva) [Yuki YukI].osu
Soleily - Renatus (Gamu) [Insane].osu
TestResources.cs
Within Temptation - The Unforgiving (Armin) [Marathon].osu
beatmap-version.osu
comments.osu Fix commented line check not working with whitespace 2019-05-14 16:16:55 +09:00
controlpoint-custom-samplebank.osu
corrupted-header.osu Implement fallback decoder registration 2019-09-15 01:28:07 +02:00
empty-line-instead-of-header.osu Implement fallback decoder registration 2019-09-15 01:28:07 +02:00
empty-lines-at-start.osu Implement fallback decoder registration 2019-09-15 01:28:07 +02:00
hitobject-combo-offset.osu
hitobject-custom-samplebank.osu
hitobject-file-samples.osu Fix volume not being considered for file samples 2019-03-05 18:21:29 +09:00
hitobject-no-addition-bank.osu
invalid-events.osu shorten tests and rename 2019-08-06 12:35:18 +09:00
missing-header.osu Implement fallback decoder registration 2019-09-15 01:28:07 +02:00
no-empty-line-after-header.osu Implement fallback decoder registration 2019-09-15 01:28:07 +02:00
overlapping-control-points.osu More tests to showcase failures 2019-05-14 10:13:42 +09:00
skin-empty.ini
skin.ini Add extra legacy skin parsing tests 2019-09-03 18:59:23 +09:00
slider-samples.osu
variable-with-suffix.osb