pub fn save_history(ctx: &mut ggez::Context, settings: &Settings, history: &History) {
	let mut file = ggez::filesystem::create(ctx, &settings.save_path).unwrap_or_else(|error|
		panic!("Failed to open file: {}, for saving because: {}", settings.save_path, error));
	file.write_all(&toml::to_vec(history).unwrap_or_else(|error|
		panic!("Failed to serialize history for saving because: {}", error)))
		.unwrap_or_else(|error| panic!("Failed to write save history to file because: {}", error))
}
/// Saves the game history to the path specified in the settings.
Saves the game history to the path specified in the settings.
Saves the game history to the path specified in the settings .
pub fn save_history(ctx: &mut ggez::Context, settings: &Settings, history: &History) {
	let mut file = ggez::filesystem::create(ctx, &settings.save_path).unwrap_or_else(|error|
		panic!("Failed to open file: {}, for saving because: {}", settings.save_path, error));
	file.write_all(&toml::to_vec(history).unwrap_or_else(|error|
		panic!("Failed to serialize history for saving because: {}", error)))
		.unwrap_or_else(|error| panic!("Failed to write save history to file because: {}", error))
}
pub fn save_history ( ctx : & mut ggez :: Context , settings : & Settings , history : & History ) { let mut file = ggez :: filesystem :: create ( ctx , & settings . save_path ) . unwrap_or_else ( | error | panic ! ( " " settings save_path error ) ) ; file . write_all ( & toml :: to_vec ( history ) . unwrap_or_else ( | error | panic ! ( " " error ) ) ) . unwrap_or_else ( | error | panic ! ( " " error ) ) }
Saves the game history to the path specified in the settings.
Saves the game history to the path specified in the settings .
ctx
&mut ggez::Context
settings
&Settings
history
&History
ctx
&mut ggez::Context
settings
&Settings
history
&History