Host all loaders for forge, fix stable markers, add java version to daedalus

This commit is contained in:
Jai A
2021-12-18 22:55:03 -07:00
parent d7e0468776
commit 5a6c06c8a3
9 changed files with 180 additions and 106 deletions

View File

@@ -229,6 +229,15 @@ pub struct LibraryExtract {
pub exclude: Option<Vec<String>>,
}
#[derive(Serialize, Deserialize, Debug)]
/// Information about the java version the game needs
pub struct JavaVersion {
/// The component needed for the Java installation
component: String,
/// The major Java version number
major_version: u32,
}
#[derive(Serialize, Deserialize, Debug)]
/// A library which the game relies on to run
pub struct Library {
@@ -311,6 +320,9 @@ pub struct VersionInfo {
pub downloads: HashMap<DownloadType, Download>,
/// The version ID of the version
pub id: String,
/// The Java version this version supports
pub java_version: JavaVersion,
/// Libraries that the version depends on
pub libraries: Vec<Library>,
/// The classpath to the main class to launch the game