mirror of
https://github.com/redstrate/Physis.git
synced 2025-05-05 18:27:46 +00:00
Move dat to save data module
This commit is contained in:
parent
60493f8234
commit
6f0e85e143
4 changed files with 5 additions and 6 deletions
|
@ -144,8 +144,5 @@ pub mod patchlist;
|
||||||
|
|
||||||
mod bcn;
|
mod bcn;
|
||||||
|
|
||||||
/// Reading the binary .dat files in the user folder (e.g. GEARSET.dat)
|
|
||||||
pub mod dat;
|
|
||||||
|
|
||||||
mod error;
|
mod error;
|
||||||
pub use error::Error;
|
pub use error::Error;
|
||||||
|
|
|
@ -2,13 +2,12 @@
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
use crate::ByteBuffer;
|
use crate::ByteBuffer;
|
||||||
use crate::dat::DatHeader;
|
|
||||||
use crate::equipment::Slot;
|
use crate::equipment::Slot;
|
||||||
|
use crate::savedata::dat::DatHeader;
|
||||||
use binrw::NullString;
|
use binrw::NullString;
|
||||||
use binrw::binrw;
|
use binrw::binrw;
|
||||||
use binrw::{BinRead, BinWrite};
|
use binrw::{BinRead, BinWrite};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::io::BufWriter;
|
|
||||||
use std::io::Cursor;
|
use std::io::Cursor;
|
||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
|
|
||||||
|
@ -247,7 +246,7 @@ impl GearSets {
|
||||||
let mut cursor = Cursor::new(&mut buffer);
|
let mut cursor = Cursor::new(&mut buffer);
|
||||||
|
|
||||||
let header = DatHeader {
|
let header = DatHeader {
|
||||||
file_type: crate::dat::DatFileType::Gearset,
|
file_type: crate::savedata::dat::DatFileType::Gearset,
|
||||||
max_size: 45205,
|
max_size: 45205,
|
||||||
content_size: 45205,
|
content_size: 45205,
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,3 +9,6 @@ pub mod gearsets;
|
||||||
|
|
||||||
/// Reading and writing chat logs (LOG).
|
/// Reading and writing chat logs (LOG).
|
||||||
pub mod log;
|
pub mod log;
|
||||||
|
|
||||||
|
/// Reading the binary .dat files in the user folder (e.g. GEARSET.dat)
|
||||||
|
pub mod dat;
|
||||||
|
|
Loading…
Add table
Reference in a new issue