mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-14 21:45:29 +00:00
Merge pull request #8 from Heavybob/default
Hotfix for /register-kill/register-kill
This commit is contained in:
commit
18924e67d8
1 changed files with 14 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
||||||
$TrackRver = "2.06"
|
$TrackRver = "2.07"
|
||||||
|
|
||||||
# Path to the config file
|
# Path to the config file
|
||||||
$appName = "AutoTrackR2"
|
$appName = "AutoTrackR2"
|
||||||
|
@ -32,41 +32,37 @@ $videoRecord = $config.VideoRecord
|
||||||
$offlineMode = $config.OfflineMode
|
$offlineMode = $config.OfflineMode
|
||||||
|
|
||||||
if ($offlineMode -eq 1){
|
if ($offlineMode -eq 1){
|
||||||
$offlineMode = $true
|
$offlineMode = $true
|
||||||
} else {
|
} else {
|
||||||
$offlineMode = $false
|
$offlineMode = $false
|
||||||
}
|
}
|
||||||
Write-Output "PlayerName=OfflineMode: $offlineMode"
|
Write-Output "PlayerName=OfflineMode: $offlineMode"
|
||||||
|
|
||||||
if ($videoRecord -eq 1){
|
if ($videoRecord -eq 1){
|
||||||
$videoRecord = $true
|
$videoRecord = $true
|
||||||
} else {
|
} else {
|
||||||
$videoRecord = $false
|
$videoRecord = $false
|
||||||
}
|
}
|
||||||
Write-Output "PlayerName=VideoRecord: $videoRecord"
|
Write-Output "PlayerName=VideoRecord: $videoRecord"
|
||||||
|
|
||||||
if ($visorWipe -eq 1){
|
if ($visorWipe -eq 1){
|
||||||
$visorWipe = $true
|
$visorWipe = $true
|
||||||
} else {
|
} else {
|
||||||
$visorWipe = $false
|
$visorWipe = $false
|
||||||
}
|
}
|
||||||
Write-Output "PlayerName=VisorWipe: $visorWipe"
|
Write-Output "PlayerName=VisorWipe: $visorWipe"
|
||||||
|
|
||||||
If (Test-Path $logFilePath) {
|
If (Test-Path $logFilePath) {
|
||||||
Write-Output "PlayerName=Logfile found"
|
Write-Output "PlayerName=Logfile found"
|
||||||
} else {
|
} else {
|
||||||
Write-Output "Logfile not found."
|
Write-Output "Logfile not found."
|
||||||
}
|
}
|
||||||
|
|
||||||
If ($null -ne $apiUrl){
|
If ($null -ne $apiUrl){
|
||||||
if ($apiUrl -notlike "*/register-kill") {
|
if ($apiUrl -notlike "*/register-kill") {
|
||||||
if ($apiUrl -like "*/"){
|
$apiUrl = $apiUrl.TrimEnd("/") + "/register-kill"
|
||||||
$apiUrl = $apiUrl + "register-kill"
|
}
|
||||||
}
|
Write-output "PlayerName=$apiURL"
|
||||||
if ($apiUrl -notlike "*/"){
|
|
||||||
$apiUrl = $apiUrl + "/register-kill"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Write-output "PlayerName=$apiURL"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ship Manufacturers
|
# Ship Manufacturers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue