Skip to content
Snippets Groups Projects
Verified Commit 65160532 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: panic on pausing

parent 60168ba0
No related branches found
No related tags found
No related merge requests found
Pipeline #805 passed
......@@ -81,7 +81,11 @@ impl Chip8 for Chip8Neo {
}
fn pause(&mut self) {
self.paused = true;
if cfg!(feature = "quirks") {
self.paused = true;
} else {
panic!("no pause support available");
}
}
fn paused(&self) -> bool {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment