You've already forked AstralRinth
forked from didirus/AstralRinth
Add method of storing launcher data, fix forge 1.17+, add launcher settings
This commit is contained in:
22
theseus/src/data/mod.rs
Normal file
22
theseus/src/data/mod.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
use std::io;
|
||||
|
||||
pub use meta::Metadata;
|
||||
pub use settings::Settings;
|
||||
|
||||
mod meta;
|
||||
mod settings;
|
||||
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum DataError {
|
||||
#[error("I/O error while reading data: {0}")]
|
||||
IOError(#[from] io::Error),
|
||||
|
||||
#[error("Daedalus error: {0}")]
|
||||
DaedalusError(#[from] daedalus::Error),
|
||||
|
||||
#[error("Attempted to access {0} without initializing it!")]
|
||||
InitializedError(String),
|
||||
|
||||
#[error("Error while serializing/deserializing data")]
|
||||
SerdeError(#[from] serde_json::Error),
|
||||
}
|
||||
Reference in New Issue
Block a user