Skip to content

Commit

Permalink
Use tetanes-core from their repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tedsteen committed May 22, 2024
1 parent 503c985 commit 86094a0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
23 changes: 6 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ raw-window-handle = "0.6"
# sdl2 = { version = "0.36", features = ["bundled", "static-link"] }
sdl2 = { git = "https://github.com/tedsteen/rust-sdl2.git", branch = "for-nes-bundler", features = ["bundled", "static-link"] }

tetanes-core = { git = "https://github.com/tedsteen/tetanes.git", branch="for-nes-bundler" }
tetanes-core = { git = "https://github.com/lukexor/tetanes.git" }
bincode = "1.3"
thingbuf = "0.1"

Expand Down
6 changes: 5 additions & 1 deletion src/emulation/tetanes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anyhow::Result;
use tetanes_core::{
apu::filter::FilterChain,
common::{NesRegion, Regional, Reset, ResetKind},
control_deck::{Config, ControlDeck, HeadlessMode},
control_deck::{Config, ControlDeck, HeadlessMode, MapperRevisionsConfig},
cpu::Cpu,
fs,
input::{FourPlayer, Joypad, Player},
Expand Down Expand Up @@ -56,6 +56,10 @@ impl TetanesNesState {
concurrent_dpad: false,
channels_enabled: [true; 6],
headless_mode: HeadlessMode::empty(),
cycle_accurate: false,
data_dir: Config::default_data_dir(),
mapper_revisions: MapperRevisionsConfig::default(),
emulate_ppu_warmup: false,
};
log::debug!("Starting ROM with configuration {config:?}");
let mut control_deck = ControlDeck::with_config(config);
Expand Down

0 comments on commit 86094a0

Please sign in to comment.