mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-13 17:11:06 +00:00
Add Starbound support
This commit is contained in:
parent
c04f442bbe
commit
b6696e1af3
3 changed files with 18 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ pub enum Server {
|
|||
|
||||
impl Server {
|
||||
pub(crate) fn from_gldsrc(value: u8) -> GDResult<Self> {
|
||||
Ok(match value {
|
||||
Ok(match value.to_ascii_lowercase() {
|
||||
100 => Self::Dedicated, //'d'
|
||||
108 => Self::NonDedicated, //'l'
|
||||
112 => Self::TV, //'p'
|
||||
|
|
@ -39,7 +39,7 @@ pub enum Environment {
|
|||
|
||||
impl Environment {
|
||||
pub(crate) fn from_gldsrc(value: u8) -> GDResult<Self> {
|
||||
Ok(match value {
|
||||
Ok(match value.to_ascii_lowercase() {
|
||||
108 => Self::Linux, //'l'
|
||||
119 => Self::Windows, //'w'
|
||||
109 | 111 => Self::Mac, //'m' or 'o'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue