Skip to content

Commit

Permalink
Update DeviceOs to latest protocol (#4553)
Browse files Browse the repository at this point in the history
* Update DeviceOs to latest protocol
* Revert enum name change and add deprecation annotations
  • Loading branch information
rtm516 authored and Konicai committed Aug 1, 2024
1 parent 98c412c commit 03187b6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions common/src/main/java/org/geysermc/floodgate/util/DeviceOs.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2022 GeyserMC. http://geysermc.org
* Copyright (c) 2019-2024 GeyserMC. http://geysermc.org
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -39,15 +39,19 @@ public enum DeviceOs {
OSX("macOS"),
AMAZON("Amazon"),
GEARVR("Gear VR"),
HOLOLENS("Hololens"),
@Deprecated HOLOLENS("Hololens"),
UWP("Windows"),
WIN32("Windows x86"),
DEDICATED("Dedicated"),
TVOS("Apple TV"),
PS4("PS4"),
@Deprecated TVOS("Apple TV"),
/**
* This is for all PlayStation platforms not just PS4
*/
PS4("PlayStation"),
NX("Switch"),
XBOX("Xbox One"),
WINDOWS_PHONE("Windows Phone");
XBOX("Xbox"),
@Deprecated WINDOWS_PHONE("Windows Phone"),
LINUX("Linux");

private static final DeviceOs[] VALUES = values();

Expand Down

0 comments on commit 03187b6

Please sign in to comment.