rust/physfs-rs/src/physfs/util.rs
author alfadur
Fri, 28 Jan 2022 02:33:44 +0300
changeset 15851 d5e6c8c92d87
parent 14456 a1613788130d
permissions -rw-r--r--
add direct access to gear data

use std::io::{ Error, ErrorKind };
use super::PhysFSContext;

pub fn physfs_error_as_io_error() -> Error {
    Error::new(ErrorKind::Other,
               &format!("PhysicsFS Error: `{}`", PhysFSContext::get_last_error())[..])
}