mirror of
https://github.com/gopher64/gopher64.git
synced 2026-11-11 16:49:01 +01:00
use tokio::fs (#763)
This commit is contained in:
1 parent
cb87f79710
commit
28aa8ea280
1 file changed
+3
-1
+3
-1
@@ -232,7 +232,9 @@ async fn main() -> std::io::Result<()> {
|
||||
} else if let Some(gb_rams) = &args.gb_ram {
|
||||
for i in 0..4 {
|
||||
if let Some(gb_ram) = gb_rams.get(i) {
|
||||
std::fs::write(gb_ram, &device.transferpaks[i].cart.ram).unwrap();
|
||||
tokio::fs::write(gb_ram, &device.transferpaks[i].cart.ram)
|
||||
.await
|
||||
.unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user