diff --git a/data/manifest.yaml b/data/manifest.yaml index 27d9e295..b044a51c 100644 --- a/data/manifest.yaml +++ b/data/manifest.yaml @@ -1240,6 +1240,27 @@ $1 Ride: - store: steam steam: id: 1126840 +12 Is Better than 6: + files: + "/_12ibt6/savedata.ini": + tags: + - save + when: + - os: windows + "/_12ibt6/settings.ini": + tags: + - config + when: + - os: windows + id: + steamExtra: + - 411110 + - 450820 + - 450830 + installDir: + 12 is Better Than 6: {} + steam: + id: 410110 12 Labours of Hercules: files: "/.Saves/ZOG/Hercules": @@ -178929,6 +178950,26 @@ Enigma: - save when: - os: windows +Enigma (2015): + files: + "/ENIGMA.cf": + tags: + - config + when: + - os: windows + "/savedata": + tags: + - save + when: + - os: windows + installDir: + ENIGMA: {} + launch: + "/ENIGMA.exe": + - when: + - store: steam + steam: + id: 494100 Enigma Prison: steam: id: 500740 diff --git a/data/steam-game-cache.yaml b/data/steam-game-cache.yaml index c103d130..7c5ea531 100644 --- a/data/steam-game-cache.yaml +++ b/data/steam-game-cache.yaml @@ -99055,22 +99055,22 @@ - config: oslist: windows description: 12 is Better Than 6 (High Resolution) - executable: "12ibt6Hi\\\\12ibt6.exe" + executable: "12ibt6Hi\\12ibt6.exe" type: option1 - config: oslist: linux description: 12 is Better Than 6 (High Resolution) - executable: "12ibt6Hi\\\\runner" + executable: "12ibt6Hi\\runner" type: option1 - config: oslist: windows description: 12 is Better Than 6 (Low Resolution) - executable: "12ibt6Low\\\\12ibt6.exe" + executable: "12ibt6Low\\12ibt6.exe" type: option2 - config: oslist: linux description: 12 is Better Than 6 (Low Resolution) - executable: "12ibt6Low\\\\runner" + executable: "12ibt6Low\\runner" type: option2 - config: oslist: macos diff --git a/data/wiki-game-cache.yaml b/data/wiki-game-cache.yaml index b6bcda8e..b33e7ab3 100644 --- a/data/wiki-game-cache.yaml +++ b/data/wiki-game-cache.yaml @@ -362,6 +362,18 @@ $1 Ride: 12 HOURS 2: pageId: 143957 steam: 1126840 +12 Is Better than 6: + pageId: 38569 + renamedFrom: + - 12 is Better Than 6 + steam: 410110 + steamSide: + - 411110 + - 450820 + - 450830 + templates: + - "{{Game data/config|Windows|{{p|appdata}}\\_12ibt6\\settings.ini}}" + - "{{Game data/saves|Windows|{{p|appdata}}\\_12ibt6\\savedata.ini}}" 12 Labours of Hercules: pageId: 31758 steam: 342580 @@ -419,16 +431,6 @@ $1 Ride: - "{{Game data/saves|Windows|{{p|hkcu}}\\Software\\Roman Uhlig\\12 orbits}}" - "{{Game data/saves|OS X|{{p|osxhome}}/.config/unity3d/Roman Uhlig/12 orbits}}" - "{{Game data/saves|Linux|{{p|linuxhome}}/Library/Preferences/unity.Roman Uhlig.12 orbits.plist}}" -12 is Better Than 6: - pageId: 38569 - steam: 410110 - steamSide: - - 411110 - - 450820 - - 450830 - templates: - - "{{Game data/config|Windows|{{p|appdata}}\\_12ibt6\\settings.ini}}" - - "{{Game data/saves|Windows|{{p|appdata}}\\_12ibt6\\savedata.ini}}" 123 Slaughter Me Street: pageId: 34869 steam: 405180 @@ -53176,6 +53178,12 @@ Enigma: templates: - "{{Game data/config|Windows|{{p|appdata}}\\Roaming\\Enigma\\}}" - "{{Game data/saves|Windows|{{p|appdata}}\\Roaming\\Enigma\\}}" +Enigma (2015): + pageId: 39785 + steam: 494100 + templates: + - "{{Game data/config|Windows|{{Path|Game}}\\ENIGMA.cf}}" + - "{{Game data/saves|Windows|{{Path|Game}}\\savedata\\}}" Enigma Prison: pageId: 39654 steam: 500740 diff --git a/src/wiki.rs b/src/wiki.rs index c0956f82..7116df93 100644 --- a/src/wiki.rs +++ b/src/wiki.rs @@ -182,11 +182,12 @@ impl WikiCache { } } Some(old_name) => { - self.0.entry(title.to_string()).and_modify(|x| { - x.page_id = page_id; - x.state = State::Outdated; - x.renamed_from.push(old_name); - }); + if let Some(mut info) = self.0.remove(&old_name) { + info.page_id = page_id; + info.state = State::Outdated; + info.renamed_from.push(old_name); + self.0.insert(title, info); + } } } }