1
Fork 0
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:
Joshua Goins 2025-04-28 22:48:45 -04:00
parent 60493f8234
commit 6f0e85e143
4 changed files with 5 additions and 6 deletions

View file

@ -144,8 +144,5 @@ pub mod patchlist;
mod bcn;
/// Reading the binary .dat files in the user folder (e.g. GEARSET.dat)
pub mod dat;
mod error;
pub use error::Error;

View file

@ -2,13 +2,12 @@
// SPDX-License-Identifier: GPL-3.0-or-later
use crate::ByteBuffer;
use crate::dat::DatHeader;
use crate::equipment::Slot;
use crate::savedata::dat::DatHeader;
use binrw::NullString;
use binrw::binrw;
use binrw::{BinRead, BinWrite};
use std::collections::HashMap;
use std::io::BufWriter;
use std::io::Cursor;
use std::io::Read;
@ -247,7 +246,7 @@ impl GearSets {
let mut cursor = Cursor::new(&mut buffer);
let header = DatHeader {
file_type: crate::dat::DatFileType::Gearset,
file_type: crate::savedata::dat::DatFileType::Gearset,
max_size: 45205,
content_size: 45205,
};

View file

@ -9,3 +9,6 @@ pub mod gearsets;
/// Reading and writing chat logs (LOG).
pub mod log;
/// Reading the binary .dat files in the user folder (e.g. GEARSET.dat)
pub mod dat;