1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-24 21:37:46 +00:00

Fix wrong platform strings

I personally confirmed this for PS3, unknown about PS4. Add TODOs about
other platforms.
This commit is contained in:
Joshua Goins 2024-04-16 22:16:42 -04:00
parent 58cec6c91f
commit 33e9be8af1

View file

@ -65,12 +65,13 @@ pub enum Platform {
Win32, Win32,
PS3, PS3,
PS4, PS4,
// TODO: confirm if there is a separate PS5, Xbox platform
} }
pub fn get_platform_string(id: &Platform) -> &'static str { pub fn get_platform_string(id: &Platform) -> &'static str {
match &id { match &id {
Platform::Win32 => "win32", Platform::Win32 => "win32",
Platform::PS3 => "ps3.d", Platform::PS3 => "ps3",
Platform::PS4 => "ps4.d", Platform::PS4 => "ps4", // TODO: confirm if this "ps4" is correct
} }
} }