Compare commits
No commits in common. "58bb34e3ccd630e129d3f7e58dcc79290e7caa4f" and "1c146590fe040fb51f9c9fe18aa2a2ec43bdcdec" have entirely different histories.
58bb34e3cc
...
1c146590fe
|
@ -154,14 +154,14 @@ fn extract_isx_symbols(input: &[u8]) -> Option<Vec<Symbol>> {
|
||||||
// Range (Virtual Boy)
|
// Range (Virtual Boy)
|
||||||
let count_bytes;
|
let count_bytes;
|
||||||
(count_bytes, buf) = buf.split_first_chunk()?;
|
(count_bytes, buf) = buf.split_first_chunk()?;
|
||||||
let count = u16::from_le_bytes(*count_bytes);
|
let count = u16::from_le_bytes(*count_bytes) + 1;
|
||||||
(_, buf) = buf.split_at_checked(count as usize * 9)?;
|
(_, buf) = buf.split_at_checked(count as usize * 9)?;
|
||||||
}
|
}
|
||||||
0x14 => {
|
0x14 => {
|
||||||
// Symbol (Virtual Boy)
|
// Symbol (Virtual Boy)
|
||||||
let count_bytes;
|
let count_bytes;
|
||||||
(count_bytes, buf) = buf.split_first_chunk()?;
|
(count_bytes, buf) = buf.split_first_chunk()?;
|
||||||
let count = u16::from_le_bytes(*count_bytes);
|
let count = u16::from_le_bytes(*count_bytes) + 1;
|
||||||
for _ in 0..count {
|
for _ in 0..count {
|
||||||
let name_len;
|
let name_len;
|
||||||
(name_len, buf) = buf.split_first()?;
|
(name_len, buf) = buf.split_first()?;
|
||||||
|
|
|
@ -88,7 +88,6 @@ impl GameWindow {
|
||||||
Command::OpenRom => {
|
Command::OpenRom => {
|
||||||
let rom = rfd::FileDialog::new()
|
let rom = rfd::FileDialog::new()
|
||||||
.add_filter("Virtual Boy ROMs", &["vb", "vbrom"])
|
.add_filter("Virtual Boy ROMs", &["vb", "vbrom"])
|
||||||
.add_filter("Executable files", &["", "elf", "isx"])
|
|
||||||
.pick_file();
|
.pick_file();
|
||||||
if let Some(path) = rom {
|
if let Some(path) = rom {
|
||||||
self.client
|
self.client
|
||||||
|
@ -141,7 +140,6 @@ impl GameWindow {
|
||||||
{
|
{
|
||||||
let rom = rfd::FileDialog::new()
|
let rom = rfd::FileDialog::new()
|
||||||
.add_filter("Virtual Boy ROMs", &["vb", "vbrom"])
|
.add_filter("Virtual Boy ROMs", &["vb", "vbrom"])
|
||||||
.add_filter("Executable files", &["", "elf", "isx"])
|
|
||||||
.pick_file();
|
.pick_file();
|
||||||
if let Some(path) = rom {
|
if let Some(path) = rom {
|
||||||
self.client
|
self.client
|
||||||
|
|
|
@ -65,7 +65,6 @@ impl ProfileWindow {
|
||||||
.save_file();
|
.save_file();
|
||||||
if let Some(path) = file {
|
if let Some(path) = file {
|
||||||
let bytes = pollster::block_on(bytes_receiver)?;
|
let bytes = pollster::block_on(bytes_receiver)?;
|
||||||
let _ = fs::remove_file(&path);
|
|
||||||
fs::write(&path, bytes)?;
|
fs::write(&path, bytes)?;
|
||||||
Ok(Some(path.display().to_string()))
|
Ok(Some(path.display().to_string()))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue