Skip to content

Commit a41f0bb

Browse files
Merge pull request #17 from startersclan/refactor/replace-all-occurences-of-goldsource-with-goldsource
Refactor: Replace all occurences of 'GoldSource' with 'Goldsource'
2 parents f9984a0 + f0678c4 commit a41f0bb

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ SourceQuery -Address $address -Port $port -Engine 'Source' -Type 'rules'
3737
# A2A_PING query. Returns a hashtable of whether the ping was successful
3838
SourceQuery -Address $address -Port $port -Engine 'Source' -Type 'ping'
3939
40-
# GoldSource Engine
40+
# Goldsource Engine
4141
# A2S_INFO query - Returns a hashtable of server metadata
42-
SourceQuery -Address $address -Port $port -Engine 'GoldSource' -Type 'info'
42+
SourceQuery -Address $address -Port $port -Engine 'Goldsource' -Type 'info'
4343
# A2S_PLAYER query. Returns a hashtable of players
44-
SourceQuery -Address $address -Port $port -Engine 'GoldSource' -Type 'players'
44+
SourceQuery -Address $address -Port $port -Engine 'Goldsource' -Type 'players'
4545
# A2S_RULES query, Returns a hashtable of server cvars
46-
SourceQuery -Address $address -Port $port -Engine 'GoldSource' -Type 'rules'
46+
SourceQuery -Address $address -Port $port -Engine 'Goldsource' -Type 'rules'
4747
# A2A_PING query. Returns a hashtable of whether the ping was successful
48-
SourceQuery -Address $address -Port $port -Engine 'GoldSource' -Type 'ping'
48+
SourceQuery -Address $address -Port $port -Engine 'Goldsource' -Type 'ping'
4949
```
5050

5151
### Rcon
@@ -56,7 +56,7 @@ Import-Module PSSourceQuery
5656
# Source Engine
5757
SourceRcon -Address $address -Port $port -Password $rcon_password -Command 'status'
5858
59-
# GoldSource Engine
59+
# Goldsource Engine
6060
GoldsourceRcon -Address $address -Port $port -Password $rcon_password -Command 'status'
6161
```
6262

src/PSSourceQuery/public/GoldSourceRcon.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Describe "GoldSourceRcon" -Tag 'Unit' {
77
Context 'Runs' {
88

99
$gameservers = [ordered]@{
10-
# GoldSource
10+
# Goldsource
1111
cstrike = @{
1212
Address = 'cs.startersclan.com'
1313
Port = 27815

src/PSSourceQuery/public/SourceQuery.Tests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ Describe "SourceQuery" -Tag 'Unit' {
2323
Port = 27215
2424
Engine = 'Source'
2525
}
26-
# GoldSource
26+
# Goldsource
2727
cstrike = @{
2828
Address = 'cs.startersclan.com'
2929
Port = 27815
30-
Engine = 'GoldSource'
30+
Engine = 'Goldsource'
3131
}
3232
czero = @{
3333
Address = 'cs.startersclan.com'
3434
Port = 27615
35-
Engine = 'GoldSource'
35+
Engine = 'Goldsource'
3636
}
3737
valve = @{
3838
Address = 'hl.startersclan.com'
3939
Port = 27915
40-
Engine = 'GoldSource'
40+
Engine = 'Goldsource'
4141
}
4242
}
4343

src/PSSourceQuery/public/SourceQuery.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function SourceQuery {
104104
,
105105
[parameter(Mandatory=$true)]
106106
[ValidateNotNullOrEmpty()]
107-
[ValidateSet('GoldSource', 'Source')]
107+
[ValidateSet('Goldsource', 'Source')]
108108
[string]$Engine
109109
,
110110
[parameter(Mandatory=$true)]
@@ -343,7 +343,7 @@ function SourceQuery {
343343
$packetCount = $buffer.GetByte() # 1
344344
$packetNumber = $buffer.GetByte() # 1
345345
$packetSize = $buffer.GetShort() # 2
346-
}elseif ($Engine -match '^GoldSource$') {
346+
}elseif ($Engine -match '^Goldsource$') {
347347
if ($cnt -eq 0) {
348348
$packetCount = $buffer.GetByte() # 1
349349
}else {

0 commit comments

Comments
 (0)