rust/physfs-rs/src/physfs/util.rs
author unC0Rr
Fri, 10 Mar 2023 11:42:25 +0100
branchtransitional_engine
changeset 15928 772a43d88e6b
parent 14435 a1613788130d
permissions -rw-r--r--
Fix water level, add medium template

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