From c19a1077e85334a3e5ba885a60b03d76409a2b2e Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Sat, 1 Feb 2025 23:06:37 -0600 Subject: restructure project --- src/launcher/jre/manifest.rs | 65 -------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 src/launcher/jre/manifest.rs (limited to 'src/launcher/jre/manifest.rs') diff --git a/src/launcher/jre/manifest.rs b/src/launcher/jre/manifest.rs deleted file mode 100644 index 3fd6484..0000000 --- a/src/launcher/jre/manifest.rs +++ /dev/null @@ -1,65 +0,0 @@ -use std::collections::HashMap; -use indexmap::IndexMap; -use serde::Deserialize; -use crate::version::DownloadInfo; - -#[derive(Debug, Deserialize)] -pub struct Availability { - pub group: u32, // unknown meaning - pub progress: u32 // unknown meaning -} - -#[derive(Debug, Deserialize)] -pub struct Version { - pub name: String, - pub version: String -} - -#[derive(Debug, Deserialize)] -pub struct JavaRuntimeInfo { - // I don't see how half of this information is useful with how the JRE system currently functions -figboot - pub availability: Availability, - pub manifest: DownloadInfo, - //pub version: Version -} - -pub type JavaRuntimesManifest = HashMap>>; - -#[derive(Debug, Deserialize)] -pub struct FileDownloads { - pub lzma: Option, - pub raw: DownloadInfo -} - -#[derive(Debug, Deserialize)] -#[serde(rename_all = "lowercase", tag = "type")] -pub enum JavaRuntimeFile { - File { - #[serde(default)] - executable: bool, - downloads: Box - }, - Directory, - Link { - target: String - } -} - -impl JavaRuntimeFile { - pub fn is_file(&self) -> bool { - matches!(*self, JavaRuntimeFile::File { .. }) - } - - pub fn is_directory(&self) -> bool { - matches!(*self, JavaRuntimeFile::Directory) - } - - pub fn is_link(&self) -> bool { - matches!(*self, JavaRuntimeFile::Link { .. }) - } -} - -#[derive(Debug, Deserialize)] -pub struct JavaRuntimeManifest { - pub files: IndexMap -} -- cgit v1.2.3-70-g09d2