Hats webpage: Many improvements and fixes (2nd try)
* Fix static hats not being animated properly
* Make widges more user-friendly
* Add local mode to hats webpage to make testing easier (IS_LOCAL variable)
* Cleanup code
* Update themes list
* Update list of local hats
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())[..])
}