Platforms: Add win32 aka Windows 9x (#28)

* Platforms: Add win32 aka Windows 9x

* Adjust Win32 icon & platform name

---------

Co-authored-by: Luke Street <luke@street.dev>
This commit is contained in:
Sandy
2026-03-08 17:41:32 -06:00
committed by GitHub
co-authored by Luke Street
parent 933d9c2295
commit 811a784d83
4 changed files with 9 additions and 0 deletions
Binary file not shown.
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 2.9 KiB

+5
View File
@@ -201,6 +201,7 @@ pub struct FrogressMapping {
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub enum Platform { pub enum Platform {
PS, // 1994 PS, // 1994
Win32, // 1995
N64, // 1996 N64, // 1996
PS2, // 2000 PS2, // 2000
GBA, // 2001 GBA, // 2001
@@ -215,6 +216,7 @@ pub enum Platform {
pub const ALL_PLATFORMS: &[Platform] = &[ pub const ALL_PLATFORMS: &[Platform] = &[
Platform::PS, Platform::PS,
Platform::Win32,
Platform::N64, Platform::N64,
Platform::PS2, Platform::PS2,
Platform::GBA, Platform::GBA,
@@ -231,6 +233,7 @@ impl Platform {
pub fn to_str(self) -> &'static str { pub fn to_str(self) -> &'static str {
match self { match self {
Self::PS => "ps", Self::PS => "ps",
Self::Win32 => "win32",
Self::N64 => "n64", Self::N64 => "n64",
Self::PS2 => "ps2", Self::PS2 => "ps2",
Self::GBA => "gba", Self::GBA => "gba",
@@ -247,6 +250,7 @@ impl Platform {
pub fn name(self) -> &'static str { pub fn name(self) -> &'static str {
match self { match self {
Platform::PS => "PlayStation", Platform::PS => "PlayStation",
Platform::Win32 => "Windows",
Platform::N64 => "Nintendo 64", Platform::N64 => "Nintendo 64",
Platform::PS2 => "PlayStation 2", Platform::PS2 => "PlayStation 2",
Platform::GBA => "Game Boy Advance", Platform::GBA => "Game Boy Advance",
@@ -267,6 +271,7 @@ impl FromStr for Platform {
fn from_str(s: &str) -> Result<Self, Self::Err> { fn from_str(s: &str) -> Result<Self, Self::Err> {
match s { match s {
"ps" => Ok(Self::PS), "ps" => Ok(Self::PS),
"win32" => Ok(Self::Win32),
"n64" => Ok(Self::N64), "n64" => Ok(Self::N64),
"ps2" => Ok(Self::PS2), "ps2" => Ok(Self::PS2),
"gba" => Ok(Self::GBA), "gba" => Ok(Self::GBA),
+1
View File
@@ -180,6 +180,7 @@ $breakpoints: (
.icon-xbox360:before { content: '\ea08'; } .icon-xbox360:before { content: '\ea08'; }
.icon-3ds:before { content: '\ea09'; } .icon-3ds:before { content: '\ea09'; }
.icon-xbox:before { content: '\ea0a'; } .icon-xbox:before { content: '\ea0a'; }
.icon-win32:before { content: '\ea0b'; }
// Override the tooltip component // Override the tooltip component
[data-tooltip]:not(a, button, input) { [data-tooltip]:not(a, button, input) {