Start tracking Lutris IDs
This commit is contained in:
parent
97683408c5
commit
06602c842e
7 changed files with 35 additions and 1 deletions
|
@ -95025,6 +95025,8 @@ Celeste:
|
||||||
- config
|
- config
|
||||||
when:
|
when:
|
||||||
- os: linux
|
- os: linux
|
||||||
|
id:
|
||||||
|
lutris: celeste
|
||||||
installDir:
|
installDir:
|
||||||
Celeste: {}
|
Celeste: {}
|
||||||
launch:
|
launch:
|
||||||
|
|
|
@ -114,6 +114,8 @@ additionalProperties:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: integer
|
type: integer
|
||||||
|
lutris:
|
||||||
|
type: string
|
||||||
steamExtra:
|
steamExtra:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|
|
@ -95,6 +95,8 @@ additionalProperties:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: integer
|
type: integer
|
||||||
|
lutris:
|
||||||
|
type: string
|
||||||
steamExtra:
|
steamExtra:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|
|
@ -141243,6 +141243,22 @@
|
||||||
executable: Shenzhen
|
executable: Shenzhen
|
||||||
type: default
|
type: default
|
||||||
504230:
|
504230:
|
||||||
|
cloud:
|
||||||
|
saves:
|
||||||
|
- path: Saves
|
||||||
|
pattern: "*.celeste"
|
||||||
|
root: gameinstall
|
||||||
|
overrides:
|
||||||
|
- addPath: Celeste
|
||||||
|
os: Linux
|
||||||
|
osCompare: "="
|
||||||
|
root: gameinstall
|
||||||
|
useInstead: LinuxXdgDataHome
|
||||||
|
- addPath: Celeste
|
||||||
|
os: MacOS
|
||||||
|
osCompare: "="
|
||||||
|
root: gameinstall
|
||||||
|
useInstead: MacAppSupport
|
||||||
installDir: Celeste
|
installDir: Celeste
|
||||||
launch:
|
launch:
|
||||||
- config:
|
- config:
|
||||||
|
|
|
@ -28616,6 +28616,7 @@ Celaria:
|
||||||
- "{{Game data/config |Windows|{{p|localappdata}}\\Celaria}}"
|
- "{{Game data/config |Windows|{{p|localappdata}}\\Celaria}}"
|
||||||
- "{{Game data/saves|Windows|{{p|localappdata}}\\Celaria}}"
|
- "{{Game data/saves|Windows|{{p|localappdata}}\\Celaria}}"
|
||||||
Celeste:
|
Celeste:
|
||||||
|
lutris: celeste
|
||||||
pageId: 61156
|
pageId: 61156
|
||||||
steam: 504230
|
steam: 504230
|
||||||
templates:
|
templates:
|
||||||
|
|
|
@ -187,6 +187,7 @@ impl Game {
|
||||||
self.id = IdMetadata {
|
self.id = IdMetadata {
|
||||||
flatpak: None,
|
flatpak: None,
|
||||||
gog_extra: cache.gog_side.clone(),
|
gog_extra: cache.gog_side.clone(),
|
||||||
|
lutris: cache.lutris.clone(),
|
||||||
steam_extra: cache.steam_side.clone(),
|
steam_extra: cache.steam_side.clone(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -515,13 +516,15 @@ pub struct IdMetadata {
|
||||||
pub flatpak: Option<String>,
|
pub flatpak: Option<String>,
|
||||||
#[serde(default, skip_serializing_if = "BTreeSet::is_empty")]
|
#[serde(default, skip_serializing_if = "BTreeSet::is_empty")]
|
||||||
pub gog_extra: BTreeSet<u64>,
|
pub gog_extra: BTreeSet<u64>,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub lutris: Option<String>,
|
||||||
#[serde(default, skip_serializing_if = "BTreeSet::is_empty")]
|
#[serde(default, skip_serializing_if = "BTreeSet::is_empty")]
|
||||||
pub steam_extra: BTreeSet<u32>,
|
pub steam_extra: BTreeSet<u32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IdMetadata {
|
impl IdMetadata {
|
||||||
pub fn is_empty(&self) -> bool {
|
pub fn is_empty(&self) -> bool {
|
||||||
self.flatpak.is_none() && self.gog_extra.is_empty() && self.steam_extra.is_empty()
|
self.flatpak.is_none() && self.gog_extra.is_empty() && self.lutris.is_none() && self.steam_extra.is_empty()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -336,6 +336,8 @@ pub struct WikiCacheEntry {
|
||||||
pub gog: Option<u64>,
|
pub gog: Option<u64>,
|
||||||
#[serde(skip_serializing_if = "BTreeSet::is_empty")]
|
#[serde(skip_serializing_if = "BTreeSet::is_empty")]
|
||||||
pub gog_side: BTreeSet<u64>,
|
pub gog_side: BTreeSet<u64>,
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
pub lutris: Option<String>,
|
||||||
pub page_id: u64,
|
pub page_id: u64,
|
||||||
#[serde(skip_serializing_if = "Vec::is_empty")]
|
#[serde(skip_serializing_if = "Vec::is_empty")]
|
||||||
pub renamed_from: Vec<String>,
|
pub renamed_from: Vec<String>,
|
||||||
|
@ -402,6 +404,12 @@ impl WikiCacheEntry {
|
||||||
.filter(|x| *x > 0)
|
.filter(|x| *x > 0)
|
||||||
.collect();
|
.collect();
|
||||||
}
|
}
|
||||||
|
Some("lutris") => {
|
||||||
|
let value = preprocess_text(&attribute.value.to_string());
|
||||||
|
if !value.is_empty() {
|
||||||
|
out.lutris = Some(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue