Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdud007 committed Nov 15, 2024
1 parent d6f7be3 commit 25f5ebe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion desktop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export LIBRARY_PATH="$LIBRARY_PATH:/opt/homebrew/lib"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/homebrew/lib"
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/opt/homebrew/lib"

cargo run -r
cargo run [path of ROM file]
```

anvil
Expand Down
20 changes: 3 additions & 17 deletions desktop/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -821,23 +821,9 @@ async fn main() {
// TODO: I want to have tick per frame
// for _ in 0..TICKS_PER_FRAME {}
let builder = chip8.tick();
let _ = builder.call().await;

let tx = builder.send().await;
match tx {
Ok(x) => {
println!("tx:{:?}", x);
},
Err(_) => {
std::thread::sleep(std::time::Duration::from_millis(250));
//try one more time
let builder = chip8.tick();
let _ = builder.call().await;

let tx = builder.send().await;
println!("tx:{:?}", tx);
},
}
builder.call().await.unwrap();
let tx = builder.send().await.unwrap();
println!("tx for tick:{:?}", tx);


let pc = chip8.getPC().call().await.unwrap();
Expand Down

0 comments on commit 25f5ebe

Please sign in to comment.