rust/physfs-rs/src/physfs/util.rs
author unc0rr
Sun, 01 Sep 2019 10:37:16 +0200
changeset 15394 7718bdf60d45
parent 14440 a1613788130d
permissions -rw-r--r--
Set dX sign early so jump calculations always get correct value

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