mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
Specified MIT license and made the valve protocol check if the queried game is the right game
This commit is contained in:
parent
1cb00f826a
commit
192d50a11d
4 changed files with 34 additions and 18 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use crate::errors::GDError;
|
||||
use crate::valve::{Response, ValveProtocol, App, GatheringSettings};
|
||||
use crate::valve::{ValveProtocol, App, GatheringSettings, Response};
|
||||
|
||||
pub struct TF2;
|
||||
|
||||
|
|
@ -9,8 +9,7 @@ impl TF2 {
|
|||
None => 27015,
|
||||
Some(port) => port
|
||||
}, GatheringSettings {
|
||||
info: false,
|
||||
players: false,
|
||||
players: true,
|
||||
rules: true
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue