Rename cdgen to psxcdgen_ex to limit scope
This commit is contained in:
10
src/Tools/psxcdgen_ex/Cargo.toml
Normal file
10
src/Tools/psxcdgen_ex/Cargo.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "psxcdgen_ex"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
cdtypes = {path = "../cdtypes"}
|
||||
tool_helper = {path = "../tool_helper"}
|
1
src/Tools/psxcdgen_ex/src/lib.rs
Normal file
1
src/Tools/psxcdgen_ex/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub mod types;
|
4
src/Tools/psxcdgen_ex/src/main.rs
Normal file
4
src/Tools/psxcdgen_ex/src/main.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
fn main() {
|
||||
println!("Planschbecken");
|
||||
}
|
30
src/Tools/psxcdgen_ex/src/types/mod.rs
Normal file
30
src/Tools/psxcdgen_ex/src/types/mod.rs
Normal file
@@ -0,0 +1,30 @@
|
||||
use cdtypes::types::cdstring::DString;
|
||||
|
||||
pub struct CDDesc {
|
||||
root: Directory
|
||||
}
|
||||
|
||||
pub struct PVD {
|
||||
|
||||
}
|
||||
|
||||
pub struct Directory {
|
||||
name: DirectoryName,
|
||||
lba: Option<usize>,
|
||||
length: Option<usize>,
|
||||
data: Vec<Data>,
|
||||
dirs: Vec<Directory>
|
||||
}
|
||||
|
||||
pub struct Data {
|
||||
name: FileName,
|
||||
}
|
||||
|
||||
pub struct DirectoryName {
|
||||
name: DString<8>,
|
||||
}
|
||||
|
||||
pub struct FileName {
|
||||
name: DString<8>,
|
||||
ext: DString<3>
|
||||
}
|
Reference in New Issue
Block a user