game-scanner 1.0.4

Game Scanner for any launcher and OS
1
2
3
4
5
6
7
8
9
10
11
12
use prost::Message;
use std::fs;
use std::io;
use std::path::Path;

pub mod product;

pub fn read_product(database_path: &Path) -> io::Result<product::Database> {
    return fs::read(database_path)
        .map(bytes::Bytes::from)
        .and_then(|bytes| product::Database::decode(bytes).map_err(io::Error::from));
}