rust/physfs-rs/src/physfs/util.rs
author Wuzzy <Wuzzy2@mail.ru>
Thu, 11 Jul 2019 23:53:30 +0200
changeset 15259 df5890e5a12a
parent 14456 a1613788130d
permissions -rw-r--r--
Delete vgtDroplet and vgtChunk when hitting the ocean world edge

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