public static OsuDb Read(string path)
        {
            OsuDb db = new OsuDb();

            using (var r = new SerializationReader(File.OpenRead(path)))
                db.ReadFromStream(r);
            return(db);
        }
Exemplo n.º 2
0
        public static OsuDb Read(Stream stream)
        {
            var db = new OsuDb();

            using var r = new SerializationReader(stream);
            db.ReadFromStream(r);
            return(db);
        }