feat(content): install Modrinth project versions
This commit is contained in:
1 parent
725b52579b
commit
a05b030862
13 files changed
+1098
-117
No files matched your search
@@ -26,6 +26,8 @@ pub struct IconCell {
|
||||
pub struct ContentEntry {
|
||||
pub file_stem: String,
|
||||
pub name: String,
|
||||
pub source_slug: Option<String>,
|
||||
pub installed_path: Option<PathBuf>,
|
||||
pub title_suffix: Option<String>,
|
||||
pub footer_label: Option<String>,
|
||||
pub description: String,
|
||||
@@ -110,6 +112,8 @@ pub fn scan_one_mod(path: &Path, file_stem: &str, enabled: bool) -> ContentEntry
|
||||
ContentEntry {
|
||||
file_stem: file_stem.to_owned(),
|
||||
name: display_name,
|
||||
source_slug: None,
|
||||
installed_path: None,
|
||||
title_suffix: None,
|
||||
footer_label: None,
|
||||
description,
|
||||
@@ -705,6 +709,8 @@ mod tests {
|
||||
let entry = ContentEntry {
|
||||
file_stem: "mymod".to_string(),
|
||||
name: "mymod".to_string(),
|
||||
source_slug: None,
|
||||
installed_path: None,
|
||||
title_suffix: None,
|
||||
footer_label: None,
|
||||
description: String::new(),
|
||||
@@ -978,6 +984,8 @@ description = "A neoforge mod"
|
||||
let entry = ContentEntry {
|
||||
file_stem: "mymod".to_string(),
|
||||
name: "mymod".to_string(),
|
||||
source_slug: None,
|
||||
installed_path: None,
|
||||
title_suffix: None,
|
||||
footer_label: None,
|
||||
description: String::new(),
|
||||
|
||||
@@ -65,6 +65,8 @@ pub fn scan_one_resource_pack(path: &Path, file_stem: &str, enabled: bool) -> Co
|
||||
ContentEntry {
|
||||
file_stem: file_stem.to_owned(),
|
||||
name: display_name,
|
||||
source_slug: None,
|
||||
installed_path: None,
|
||||
title_suffix: None,
|
||||
footer_label: None,
|
||||
description,
|
||||
|
||||
@@ -21,6 +21,8 @@ pub fn scan_one_shader(path: &Path, file_stem: &str, enabled: bool) -> ContentEn
|
||||
ContentEntry {
|
||||
file_stem: file_stem.to_owned(),
|
||||
name: file_stem.to_owned(),
|
||||
source_slug: None,
|
||||
installed_path: None,
|
||||
title_suffix: None,
|
||||
footer_label: None,
|
||||
description,
|
||||
|
||||
@@ -18,6 +18,8 @@ pub fn scan_one_world(path: &Path, file_stem: &str, enabled: bool) -> ContentEnt
|
||||
ContentEntry {
|
||||
name: file_stem.to_owned(),
|
||||
file_stem: file_stem.to_owned(),
|
||||
source_slug: None,
|
||||
installed_path: None,
|
||||
title_suffix: None,
|
||||
footer_label: None,
|
||||
description,
|
||||
|
||||
Reference in new issue
Block a user