rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Sat, 06 Jun 2020 20:21:08 +0200
changeset 15600 7d3877231b00
parent 14435 a1613788130d
permissions -rw-r--r--
Teach AI to drop mines from safe height Placing mine on ground and then escaping is not possible yet

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