mirror of
https://github.com/kirjavascript/trueLMAO.git
synced 2024-05-09 16:33:36 -04:00
loading files
This commit is contained in:
parent
63dbbb328c
commit
3bab516e57
|
@ -115,12 +115,8 @@ impl eframe::App for App {
|
|||
self.file.open();
|
||||
}
|
||||
|
||||
if ui.button("Save file").clicked() {
|
||||
self.file.save("test.txt", vec![0, 1, 2, 3, 33]);
|
||||
}
|
||||
|
||||
if let Some(file) = self.file.get() {
|
||||
println!("{:#?}", file);
|
||||
let _ = std::mem::replace(&mut self.emu, Megadrive::new(file));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ use wasm_bindgen::JsCast;
|
|||
#[cfg(target_arch = "wasm32")]
|
||||
use web_sys::{window, Url, File, HtmlInputElement, FileReader};
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
use js_sys::{Uint8Array, Array};
|
||||
use js_sys::{Uint8Array, Array, ArrayBuffer};
|
||||
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
|
|
Loading…
Reference in a new issue