rust/physfs-rs/src/physfs/util.rs
author unC0Rr
Mon, 13 Feb 2023 10:39:37 +0100
branchtransitional_engine
changeset 15920 168f44ef9b67
parent 14435 a1613788130d
permissions -rw-r--r--
Extract tile loading into separate method

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