Parse any osu! related file (in theory. Right now only *.osr (replays) and *.osu (beatmaps) files are supported)
- Easy API
- No compilation required
- Cross-platform
- Unlicense
- osr: Tested with valid osu!standard replays
- osu: Tested (but not thoroughly) with valid osu!standard beatmaps
- WARNING: In all other cases behavior might be unpredictable
- Has to be linked and compiled with LZMA-SDK
For Microsoft Visual Studio 2017:
- Add path to
include/
directory as an additional include directory to the project - Add all
*.cpp
files fromsrc/
directory as existing source files to the project
#include "osu!parser.h"
#include <fstream>
int main()
{
std::ifstream file("replay.osr", std::ios::binary);
osuParser::OsrParser p(file);
p.Parse();
// p.<parsedValues>
}
(Refer to osr file format documentation for details)
#include "osu!parser.h"
#include <fstream>
int main()
{
std::ifstream file("beatmap.osu");
osuParser::OsuParser p(file);
p.Parse();
// p.<parsedValues>
}
(Refer to osu file format documentation for details)
For detailed markdown description of available methods and fields, see documentation.
- Parse .db files
- Test other game modes for *.osr and *.osu