Add workaround for Nine Sols registry size issue

This commit is contained in:
mtkennerly 2024-07-19 16:14:58 -04:00
parent 20e6db809f
commit 9d0d0d2435
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
3 changed files with 11 additions and 4 deletions

View file

@ -17,6 +17,12 @@ Nevsky Run:
# Also, it's been renamed on Steam to "Secret Girl" # Also, it's been renamed on Steam to "Secret Girl"
# and is no longer available for sale. # and is no longer available for sale.
useSteamCloud: false useSteamCloud: false
Nine Sols:
# The registry.yaml backups can become large (> 100 MB),
# causing memory usage in Ludusavi to spike (> 1 GB).
# For now, we ignore the registry until there is a proper solution.
# https://github.com/mtkennerly/ludusavi/issues/370
omitRegistry: true
Overwatch: Overwatch:
# The game is no longer playable at all, # The game is no longer playable at all,
# and its save locations are identical to Overwatch 2, # and its save locations are identical to Overwatch 2,

View file

@ -436730,10 +436730,6 @@ Nine Sols:
- when: - when:
- os: windows - os: windows
store: steam store: steam
registry:
HKEY_CURRENT_USER/SOFTWARE/RedCandleGames/NineSols:
tags:
- config
steam: steam:
id: 1809540 id: 1809540
"Nine Witches: Family Disruption": "Nine Witches: Family Disruption":

View file

@ -455,6 +455,10 @@ impl Game {
self.id.flatpak = Some(flatpak.clone()); self.id.flatpak = Some(flatpak.clone());
} }
self.install_dir.extend(overridden.game.install_dir.clone()); self.install_dir.extend(overridden.game.install_dir.clone());
if overridden.omit_registry {
self.registry.clear();
}
} }
pub fn usable(&self) -> bool { pub fn usable(&self) -> bool {
@ -620,6 +624,7 @@ pub struct ManifestOverride(pub BTreeMap<String, OverrideGame>);
#[serde(default, rename_all = "camelCase")] #[serde(default, rename_all = "camelCase")]
pub struct OverrideGame { pub struct OverrideGame {
pub omit: bool, pub omit: bool,
pub omit_registry: bool,
pub use_steam_cloud: bool, pub use_steam_cloud: bool,
#[serde(flatten)] #[serde(flatten)]
pub game: Game, pub game: Game,