mirror of
https://github.com/lightsoutgames/bevy_full_throttle
synced 2024-12-22 01:05:57 +00:00
chore: Upgrade to Bevy 0.15.
This commit is contained in:
parent
b7d74b3537
commit
6ed6185ca8
|
@ -9,7 +9,9 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
bevy = { version = "0.14", default-features = false }
|
||||
bevy = { version = "0.15", default-features = false, features = [
|
||||
"bevy_window",
|
||||
] }
|
||||
ctrlc = "3"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
use bevy::{app::AppExit, prelude::*, window::WindowFocused};
|
||||
use bevy::{
|
||||
app::{AppExit, TerminalCtrlCHandlerPlugin},
|
||||
prelude::*,
|
||||
window::WindowFocused,
|
||||
};
|
||||
#[cfg(windows)]
|
||||
use windows::{
|
||||
core::GUID,
|
||||
|
@ -28,7 +32,7 @@ fn setup(mut commands: Commands) {
|
|||
Power::PowerSetActiveScheme(None, Some(active))
|
||||
.ok()
|
||||
.expect("Failed to set power scheme");
|
||||
std::process::exit(1);
|
||||
TerminalCtrlCHandlerPlugin::gracefully_exit();
|
||||
})
|
||||
.expect("Failed to set exit handler");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user