Specified MIT license and made the valve protocol check if the queried game is the right game

This commit is contained in:
CosminPerRam 2022-10-18 18:20:37 +03:00
parent 1cb00f826a
commit 192d50a11d
4 changed files with 34 additions and 18 deletions

View file

@ -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
})
}