mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-25 15:16:53 +01:00
cleanup
This commit is contained in:
parent
e83c6feeb0
commit
b648182586
@ -161,7 +161,7 @@ struct FirmwareArgs {
|
||||
firmware: PathBuf,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, ValueEnum)]
|
||||
#[derive(Clone, ValueEnum)]
|
||||
enum SaveType {
|
||||
None,
|
||||
Eeprom4k,
|
||||
@ -197,7 +197,7 @@ impl From<SaveType> for sc64::SaveType {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, ValueEnum)]
|
||||
#[derive(Clone, ValueEnum)]
|
||||
enum TvType {
|
||||
PAL,
|
||||
NTSC,
|
||||
|
@ -1,27 +1,23 @@
|
||||
use super::{error::Error, utils};
|
||||
use std::{collections::VecDeque, time::Duration};
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Device {
|
||||
pub sn: String,
|
||||
pub port: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Command {
|
||||
pub id: u8,
|
||||
pub args: [u32; 2],
|
||||
pub data: Vec<u8>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Response {
|
||||
pub id: u8,
|
||||
pub data: Vec<u8>,
|
||||
pub error: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Packet {
|
||||
pub id: u8,
|
||||
pub data: Vec<u8>,
|
||||
|
Loading…
Reference in New Issue
Block a user