sidebar: implement Wii / Wii mini checks

This is done by saving whether the previous page accessed was `hbc` or
`hbc-mini`. These should only be accessed by its respective consoles,
so it's a safe bet.
This commit is contained in:
lifehackerhansol 2023-10-02 20:46:22 -07:00
parent ff3823d5fc
commit 991923eb29
No known key found for this signature in database
GPG key ID: 80FB184AFC0B3B0E
2 changed files with 12 additions and 8 deletions

View file

@ -193,6 +193,8 @@ $(document).ready(function() {
}
var devices = {
"hbc": "0",
"hbc-mini": "1"
};
// The pages used to lookup which route to display
@ -245,20 +247,22 @@ $(document).ready(function() {
"1": ["wilbrand", "hbc", "bootmii", "priiloader", "osc"],
"2": ["bluebomb", "multiple-options"],
"3": ["flashhax", "hbc", "bootmii", "priiloader", "osc"],
"4": ["str2hax", "hbc", "bootmii", "priiloader", "osc"],
"5": ["multiple-options", "hbc", "bootmii", "priiloader", "osc"],
"6": ["bluebomb", "hbc-mini", "priiloader", "osc"],
"7": ["multiple-options", "hbc", "bootmii", "priiloader", "osc"],
"8": ["multiple-options", "priiloader", "osc"],
"9": ["multiple-options", "priiloader", "osc"]
"4": ["str2hax", "hbc", "bootmii", "priiloader", "osc"]
}
// Can add custom routing if necessary but currently both routes are identical
var device_wii = Object.assign({}, device_common,{
// custom routing here
// example: "24": ["seedminer", "multiple-options", "installing-boot9strap-(pichaxx)", "finalizing-setup"],
// example: "0": ["letterbomb", "hbc", "bootmii", "priiloader", "osc"],
"5": ["multiple-options", "hbc", "bootmii", "priiloader", "osc"],
"7": ["multiple-options", "hbc", "bootmii", "priiloader", "osc"],
"8": ["multiple-options", "hbc", "bootmii", "priiloader", "osc"],
"9": ["multiple-options", "hbc", "bootmii", "priiloader", "osc"]
});
var device_mini = Object.assign({}, device_common,{
// custom routing here
"6": ["bluebomb", "hbc-mini", "priiloader", "osc"],
"8": ["bluebomb", "hbc-mini", "priiloader", "osc"],
"9": ["bluebomb", "hbc-mini", "priiloader", "osc"]
});
var route = {
"-1": device_common,

File diff suppressed because one or more lines are too long