Fix psxcdread
This commit is contained in:
parent
db4cf3eefa
commit
9c01dab083
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "cdtypes"
|
||||
version = "0.6.0"
|
||||
version = "0.7.0"
|
||||
edition = "2021"
|
||||
|
||||
[profile.release]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use super::sector::Sector;
|
||||
use super::{sector::Sector, types::time::Time};
|
||||
use super::super::{Error, types::{cue::{DataType, DataTypeEnd}, sector::*}};
|
||||
use std::io::Read;
|
||||
|
||||
|
@ -12,7 +12,7 @@ pub struct Reader<'a> {
|
|||
impl<'a> Reader<'a> {
|
||||
pub fn new(file: std::fs::File, data_type_guide: &'a Vec<DataTypeEnd>) -> Result<Reader, Error> {
|
||||
Ok(Reader{
|
||||
file, data_type_guide, lba: 0, active: true
|
||||
file, data_type_guide, lba: Time::cd_pregap().as_sectors(), active: true
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ impl std::fmt::Display for Format {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum DataType {
|
||||
Audio,
|
||||
Cdg,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "psxcdgen_ex"
|
||||
version = "0.3.1"
|
||||
version = "0.5.0"
|
||||
edition = "2021"
|
||||
|
||||
[profile.release]
|
||||
|
|
Loading…
Reference in New Issue