Skip to content

Commit

Permalink
Moved Console IDs to Wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfy76700 committed Mar 20, 2024
1 parent 4c9332e commit ffa43e2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 42 deletions.
36 changes: 18 additions & 18 deletions .utilities/consoles_list.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"dc": "Sega Dreamcast",
"n64": "Nintendo 64",
"nes": "Nintendo Entertainment System / Famicom",
"ngc": "Nintendo GameCube",
"nsw": "Nintendo Switch",
"ps1": "Sony PlayStation 1",
"ps2" : "Sony PlayStation 2",
"ps3" : "Sony PlayStation 3",
"ps4" : "Sony PlayStation 4",
"ps5" : "Sony PlayStation 5",
"xbox" : "Xbox",
"xb360" : "Xbox 360",
"xb1" : "Xbox One",
"xbs" : "Xbox Series X|S",
"nes" : "Nintendo Entertainment System / Famicom",
"snes" : "Super Nintendo Entertainment System / Super Famicom",
"n64" : "Nintendo 64",
"ngc" : "Nintendo GameCube",
"wii" : "Nintendo Wii",
"wiiu" : "Nintendo Wii U",
"nsw" : "Nintendo Switch",
"smd" : "Sega Mega Drive / Sega Genesis",
"saturn" : "Sega Saturn",
"dc" : "Sega Dreamcast"
"ps2": "Sony PlayStation 2",
"ps3": "Sony PlayStation 3",
"ps4": "Sony PlayStation 4",
"ps5": "Sony PlayStation 5",
"saturn": "Sega Saturn",
"smd": "Sega Mega Drive / Sega Genesis",
"snes": "Super Nintendo Entertainment System / Super Famicom",
"wii": "Nintendo Wii",
"wiiu": "Nintendo Wii U",
"xb1": "Xbox One",
"xb360": "Xbox 360",
"xbox": "Xbox",
"xbs": "Xbox Series X|S"
}
8 changes: 8 additions & 0 deletions .utilities/generate_controller_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,15 @@ def process_all():
result += process_category(folder.replace("\\", "/"))
return(result)

def create_consoles_table():
result = "| Codename | Name |\n| :---: | :--- |\n"
for console in consoles_dict.keys():
result += f"| `{console}` | {consoles_dict[console]} |\n"
with open(".wiki/Console IDs.md", "wt", encoding="utf-8") as md_file:
md_file.write(result)

result = process_all()
create_consoles_table()

with open(".wiki/List of controllers.md", "wt", encoding="utf-8") as md_file:
md_file.write(result)
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,3 @@ Here’s the general arborescence for this repository:
│ │ ├─ image.png Picture of the controller
│ │ ├─ {variant}.png Any image related to an alternative way to use the controller, either connected with an accessory or in a different configuration (See Joy-Con for examples)
```

## Console IDs

| ID | Console |
| :---- | :---- |
| `ps1` | PlayStation 1 |
| `ps2` | PlayStation 2 |
| `ps3` | PlayStation 3 |
| `ps4` | PlayStation 4 |
| `ps5` | PlayStation 5 |
| `xbox` | Xbox |
| `xb360` | Xbox 360 |
| `xb1` | Xbox One |
| `xbs` | Xbox Series X\|S |
| `nes` | Nintendo Entertainment System / Famicom |
| `snes` | Super Nintendo Entertainment System / Super Famicom |
| `n64` | Nintendo 64 |
| `ngc` | Nintendo GameCube |
| `wii` | Nintendo Wii |
| `wiiu` | Nintendo Wii U |
| `nsw` | Nintendo Switch |
| `smd` | Sega Mega Drive / Sega Genesis |
| `saturn` | Sega Saturn |
| `dc` | Sega Dreamcast |

0 comments on commit ffa43e2

Please sign in to comment.