feat(content): refine discovery project metadata

This commit is contained in:
objz committed 2026-07-22 23:53:57 +02:00
1 parent 19c47cdf7b
commit 725b52579b
9 files changed
+441 -87

No files matched your search

+8
View File
@@ -26,6 +26,8 @@ pub struct IconCell {
pub struct ContentEntry {
pub file_stem: String,
pub name: String,
pub title_suffix: Option<String>,
pub footer_label: Option<String>,
pub description: String,
pub enabled: bool,
pub icon_bytes: Option<Vec<u8>>,
@@ -108,6 +110,8 @@ pub fn scan_one_mod(path: &Path, file_stem: &str, enabled: bool) -> ContentEntry
ContentEntry {
file_stem: file_stem.to_owned(),
name: display_name,
title_suffix: None,
footer_label: None,
description,
enabled,
icon_bytes,
@@ -701,6 +705,8 @@ mod tests {
let entry = ContentEntry {
file_stem: "mymod".to_string(),
name: "mymod".to_string(),
title_suffix: None,
footer_label: None,
description: String::new(),
enabled: false,
icon_bytes: None,
@@ -972,6 +978,8 @@ description = "A neoforge mod"
let entry = ContentEntry {
file_stem: "mymod".to_string(),
name: "mymod".to_string(),
title_suffix: None,
footer_label: None,
description: String::new(),
enabled: true,
icon_bytes: None,
+2
View File
@@ -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,
title_suffix: None,
footer_label: None,
description,
enabled,
icon_bytes,
+2
View File
@@ -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(),
title_suffix: None,
footer_label: None,
description,
enabled,
icon_bytes,
+2
View File
@@ -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(),
title_suffix: None,
footer_label: None,
description,
enabled,
icon_bytes,