Add classpath variable for libraries

This commit is contained in:
Jai A
2021-11-10 17:34:53 -07:00
parent 0990ac4fc1
commit f6c611bbba
3 changed files with 21 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "daedalus"
version = "0.1.5"
version = "0.1.6"
authors = ["Jai A <jaiagr+gpg@pm.me>"]
edition = "2018"
license = "MIT"

View File

@@ -252,6 +252,13 @@ pub struct Library {
#[serde(skip_serializing_if = "Option::is_none")]
/// SHA1 Checksums for validating the library's integrity. Only present for forge libraries
pub checksums: Option<Vec<String>>,
#[serde(default = "default_include_in_classpath")]
/// Whether the library should be included in the classpath at the game's launch
pub include_in_classpath: bool,
}
fn default_include_in_classpath() -> bool {
true
}
#[derive(Serialize, Deserialize, Debug, Clone)]