-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemulators.ts
More file actions
195 lines (192 loc) · 5.22 KB
/
Copy pathemulators.ts
File metadata and controls
195 lines (192 loc) · 5.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
export type ConsoleId = "ps1" | "ps2" | "ps3" | "ps4" | "psp" | "n64" | "snes" | "nes" | "gba" | "dreamcast";
export interface ConsoleSpec {
id: ConsoleId;
name: string;
shortName: string;
vendor: string;
year: number;
emulator: {
name: string;
binary: string;
brewCask?: string;
brewFormula?: string;
download?: string;
args?: (romPath: string) => string[];
notes?: string;
};
romExt: string[];
accent: string;
gradient: string;
hero: string;
}
export const CONSOLES: ConsoleSpec[] = [
{
id: "ps1",
name: "PlayStation",
shortName: "PS1",
vendor: "Sony",
year: 1994,
emulator: {
name: "DuckStation",
binary: "/Applications/DuckStation.app/Contents/MacOS/DuckStation",
brewCask: "duckstation",
download: "https://www.duckstation.org/",
},
romExt: [".cue", ".bin", ".chd", ".pbp", ".iso"],
accent: "#28e2ff",
gradient: "from-cyan-500/30 via-blue-500/20 to-indigo-700/30",
hero: "Original PlayStation. CD-quality 32-bit era.",
},
{
id: "ps2",
name: "PlayStation 2",
shortName: "PS2",
vendor: "Sony",
year: 2000,
emulator: {
name: "PCSX2",
binary: "/Applications/PCSX2.app/Contents/MacOS/PCSX2",
brewCask: "pcsx2",
download: "https://pcsx2.net/",
},
romExt: [".iso", ".chd", ".cso", ".bin"],
accent: "#8a5cff",
gradient: "from-violet-500/30 via-fuchsia-500/20 to-indigo-700/30",
hero: "Best-selling console of all time. Emotion Engine inside.",
},
{
id: "ps3",
name: "PlayStation 3",
shortName: "PS3",
vendor: "Sony",
year: 2006,
emulator: {
name: "RPCS3",
binary: "/Applications/RPCS3.app/Contents/MacOS/rpcs3",
brewCask: "rpcs3",
download: "https://rpcs3.net/",
notes: "Apple Silicon build available. Cell BE emulation - heavy.",
},
romExt: [".pkg", ".iso", ".rap"],
accent: "#b9ff5e",
gradient: "from-lime-400/25 via-emerald-500/20 to-teal-600/30",
hero: "Cell processor. Blu-ray. The hardest console to emulate.",
},
{
id: "ps4",
name: "PlayStation 4",
shortName: "PS4",
vendor: "Sony",
year: 2013,
emulator: {
name: "shadPS4",
binary: "/Applications/shadPS4.app/Contents/MacOS/shadPS4",
download: "https://shadps4.net/",
notes: "Experimental. Very early. Limited title compatibility on macOS.",
},
romExt: [".pkg"],
accent: "#ff3da6",
gradient: "from-pink-500/30 via-rose-500/20 to-red-600/30",
hero: "Modern era. AMD Jaguar APU. Experimental emulation only.",
},
{
id: "psp",
name: "PlayStation Portable",
shortName: "PSP",
vendor: "Sony",
year: 2004,
emulator: {
name: "PPSSPP",
binary: "/Applications/PPSSPPSDL.app/Contents/MacOS/PPSSPPSDL",
brewCask: "ppsspp",
download: "https://www.ppsspp.org/",
},
romExt: [".iso", ".cso", ".pbp"],
accent: "#ffb547",
gradient: "from-amber-400/30 via-orange-500/20 to-rose-600/30",
hero: "Handheld powerhouse. Runs natively at 4x on M-series.",
},
{
id: "n64",
name: "Nintendo 64",
shortName: "N64",
vendor: "Nintendo",
year: 1996,
emulator: {
name: "Mupen64Plus",
binary: "/opt/homebrew/bin/mupen64plus",
brewFormula: "mupen64plus",
},
romExt: [".n64", ".z64", ".v64"],
accent: "#ff5e5e",
gradient: "from-red-500/30 via-rose-500/20 to-pink-700/30",
hero: "Three-pronged controller. Mario 64 era.",
},
{
id: "snes",
name: "Super Nintendo",
shortName: "SNES",
vendor: "Nintendo",
year: 1990,
emulator: {
name: "RetroArch",
binary: "/Applications/RetroArch.app/Contents/MacOS/RetroArch",
brewCask: "retroarch",
},
romExt: [".sfc", ".smc"],
accent: "#a78bfa",
gradient: "from-purple-500/30 via-indigo-500/20 to-violet-700/30",
hero: "16-bit Mode 7 magic.",
},
{
id: "nes",
name: "Nintendo Entertainment System",
shortName: "NES",
vendor: "Nintendo",
year: 1983,
emulator: {
name: "RetroArch",
binary: "/Applications/RetroArch.app/Contents/MacOS/RetroArch",
brewCask: "retroarch",
},
romExt: [".nes"],
accent: "#f87171",
gradient: "from-red-500/30 via-orange-500/20 to-amber-700/30",
hero: "Where it all started. 8-bit royalty.",
},
{
id: "gba",
name: "Game Boy Advance",
shortName: "GBA",
vendor: "Nintendo",
year: 2001,
emulator: {
name: "mGBA",
binary: "/Applications/mGBA.app/Contents/MacOS/mGBA",
brewCask: "mgba",
},
romExt: [".gba"],
accent: "#60a5fa",
gradient: "from-sky-500/30 via-blue-500/20 to-indigo-700/30",
hero: "Pocket arcade. ARM7 inside.",
},
{
id: "dreamcast",
name: "Dreamcast",
shortName: "DC",
vendor: "Sega",
year: 1998,
emulator: {
name: "Flycast",
binary: "/Applications/Flycast.app/Contents/MacOS/Flycast",
brewCask: "flycast",
},
romExt: [".cdi", ".gdi", ".chd"],
accent: "#fb923c",
gradient: "from-orange-500/30 via-amber-500/20 to-yellow-600/30",
hero: "Last great Sega console. VMU and dial-up nostalgia.",
},
];
export const CONSOLE_BY_ID = Object.fromEntries(
CONSOLES.map((c) => [c.id, c])
) as Record<ConsoleId, ConsoleSpec>;