Fix article rename logic
This commit is contained in:
parent
24bfb3e006
commit
c1f9367c56
4 changed files with 69 additions and 19 deletions
|
@ -1240,6 +1240,27 @@ $1 Ride:
|
||||||
- store: steam
|
- store: steam
|
||||||
steam:
|
steam:
|
||||||
id: 1126840
|
id: 1126840
|
||||||
|
12 Is Better than 6:
|
||||||
|
files:
|
||||||
|
"<winAppData>/_12ibt6/savedata.ini":
|
||||||
|
tags:
|
||||||
|
- save
|
||||||
|
when:
|
||||||
|
- os: windows
|
||||||
|
"<winAppData>/_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:
|
12 Labours of Hercules:
|
||||||
files:
|
files:
|
||||||
"<home>/.Saves/ZOG/Hercules":
|
"<home>/.Saves/ZOG/Hercules":
|
||||||
|
@ -178929,6 +178950,26 @@ Enigma:
|
||||||
- save
|
- save
|
||||||
when:
|
when:
|
||||||
- os: windows
|
- os: windows
|
||||||
|
Enigma (2015):
|
||||||
|
files:
|
||||||
|
"<base>/ENIGMA.cf":
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
when:
|
||||||
|
- os: windows
|
||||||
|
"<base>/savedata":
|
||||||
|
tags:
|
||||||
|
- save
|
||||||
|
when:
|
||||||
|
- os: windows
|
||||||
|
installDir:
|
||||||
|
ENIGMA: {}
|
||||||
|
launch:
|
||||||
|
"<base>/ENIGMA.exe":
|
||||||
|
- when:
|
||||||
|
- store: steam
|
||||||
|
steam:
|
||||||
|
id: 494100
|
||||||
Enigma Prison:
|
Enigma Prison:
|
||||||
steam:
|
steam:
|
||||||
id: 500740
|
id: 500740
|
||||||
|
|
|
@ -99055,22 +99055,22 @@
|
||||||
- config:
|
- config:
|
||||||
oslist: windows
|
oslist: windows
|
||||||
description: 12 is Better Than 6 (High Resolution)
|
description: 12 is Better Than 6 (High Resolution)
|
||||||
executable: "12ibt6Hi\\\\12ibt6.exe"
|
executable: "12ibt6Hi\\12ibt6.exe"
|
||||||
type: option1
|
type: option1
|
||||||
- config:
|
- config:
|
||||||
oslist: linux
|
oslist: linux
|
||||||
description: 12 is Better Than 6 (High Resolution)
|
description: 12 is Better Than 6 (High Resolution)
|
||||||
executable: "12ibt6Hi\\\\runner"
|
executable: "12ibt6Hi\\runner"
|
||||||
type: option1
|
type: option1
|
||||||
- config:
|
- config:
|
||||||
oslist: windows
|
oslist: windows
|
||||||
description: 12 is Better Than 6 (Low Resolution)
|
description: 12 is Better Than 6 (Low Resolution)
|
||||||
executable: "12ibt6Low\\\\12ibt6.exe"
|
executable: "12ibt6Low\\12ibt6.exe"
|
||||||
type: option2
|
type: option2
|
||||||
- config:
|
- config:
|
||||||
oslist: linux
|
oslist: linux
|
||||||
description: 12 is Better Than 6 (Low Resolution)
|
description: 12 is Better Than 6 (Low Resolution)
|
||||||
executable: "12ibt6Low\\\\runner"
|
executable: "12ibt6Low\\runner"
|
||||||
type: option2
|
type: option2
|
||||||
- config:
|
- config:
|
||||||
oslist: macos
|
oslist: macos
|
||||||
|
|
|
@ -362,6 +362,18 @@ $1 Ride:
|
||||||
12 HOURS 2:
|
12 HOURS 2:
|
||||||
pageId: 143957
|
pageId: 143957
|
||||||
steam: 1126840
|
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:
|
12 Labours of Hercules:
|
||||||
pageId: 31758
|
pageId: 31758
|
||||||
steam: 342580
|
steam: 342580
|
||||||
|
@ -419,16 +431,6 @@ $1 Ride:
|
||||||
- "{{Game data/saves|Windows|{{p|hkcu}}\\Software\\Roman Uhlig\\12 orbits}}"
|
- "{{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|OS X|{{p|osxhome}}/.config/unity3d/Roman Uhlig/12 orbits}}"
|
||||||
- "{{Game data/saves|Linux|{{p|linuxhome}}/Library/Preferences/unity.Roman Uhlig.12 orbits.plist}}"
|
- "{{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:
|
123 Slaughter Me Street:
|
||||||
pageId: 34869
|
pageId: 34869
|
||||||
steam: 405180
|
steam: 405180
|
||||||
|
@ -53176,6 +53178,12 @@ Enigma:
|
||||||
templates:
|
templates:
|
||||||
- "{{Game data/config|Windows|{{p|appdata}}\\Roaming\\Enigma\\}}"
|
- "{{Game data/config|Windows|{{p|appdata}}\\Roaming\\Enigma\\}}"
|
||||||
- "{{Game data/saves|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:
|
Enigma Prison:
|
||||||
pageId: 39654
|
pageId: 39654
|
||||||
steam: 500740
|
steam: 500740
|
||||||
|
|
11
src/wiki.rs
11
src/wiki.rs
|
@ -182,11 +182,12 @@ impl WikiCache {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some(old_name) => {
|
Some(old_name) => {
|
||||||
self.0.entry(title.to_string()).and_modify(|x| {
|
if let Some(mut info) = self.0.remove(&old_name) {
|
||||||
x.page_id = page_id;
|
info.page_id = page_id;
|
||||||
x.state = State::Outdated;
|
info.state = State::Outdated;
|
||||||
x.renamed_from.push(old_name);
|
info.renamed_from.push(old_name);
|
||||||
});
|
self.0.insert(title, info);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue