Skip to content

DB reader update, API throttling#13

Open
wwwMADwww wants to merge 3 commits intoJasperDeSutter:developmentfrom
wwwMADwww:mad20210919
Open

DB reader update, API throttling#13
wwwMADwww wants to merge 3 commits intoJasperDeSutter:developmentfrom
wwwMADwww:mad20210919

Conversation

@wwwMADwww
Copy link

Hello!

The main goal of this PR is to fix *.db file reader, now it can read files with version 20191106 and later.

Unknown properties like SomeBool, Byte, Byte2, etc renamed, DbBeatmapStatus enum entries slightly changed, added enum for UserPersmissons, all this according to osu wiki.

Regular Int32 Enums now can be saved as Bytes, unfornunately your commit mentioned here did not fixed this.

NotImplementedException added because i tried read-write to osu!.db and this always results in file with less data than i just read, turns out WriteValue for binary dictionaries is just empty. Absense of exceptions or at least console message here was very confusing.

API repositories now can be throttled. In practice it seems to be not needed today, but i already implemented this. Maybe would be usefull in multithreading.

Fixed binary writing int Enums that stored as byte
Added DbBeatmapStatuses, removed unused status
Renamed unknown properties
Throwing NotImplementedException in not implemented WriteValue method
Added constructors for configuring each API repository instance individually
Added docs to IApiScoreRepository
Removed nested API repositories
Added files to .NET Framework project
Minor compatibility change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant