Skip to content

Commit

Permalink
cfg macro
Browse files Browse the repository at this point in the history
  • Loading branch information
pineman committed Aug 10, 2024
1 parent 25673f6 commit 29eecd8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions fpt-egui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,11 @@ impl FPT {
};
if cfg!(target_arch = "wasm32") {
fpt.gb.cpu_mut().set_paused(true);
} else {
if std::env::var("CI").is_err() {
if let Ok(rom) = std::fs::read(rom_path) {
fpt.gb.load_rom(&rom);
} else {
panic!("Unable to open {}", rom_path);
}
} else if std::env::var("CI").is_err() {
if let Ok(rom) = std::fs::read(rom_path) {
fpt.gb.load_rom(&rom);
} else {
panic!("Unable to open {}", rom_path);
}
}
// XXX duplicated logic from fpt-cli main.rs
Expand Down

0 comments on commit 29eecd8

Please sign in to comment.