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