rust/physfs-rs/src/physfs/util.rs
author alfadur <mail@none>
Mon, 30 Dec 2019 17:25:44 +0300
changeset 15556 bb93e9642b5b
parent 14456 a1613788130d
permissions -rw-r--r--
send cleared flags on room join

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())[..])
}