This commit is contained in:
Lanta 2023-11-23 21:46:35 +01:00
parent 7ba4b7be3d
commit b39d5b7778
3 changed files with 37 additions and 13 deletions

View file

@ -62,7 +62,12 @@ $map_map = @{
"Tiger_Main" = "Taego"
}
$player_matches = get-content "$scriptroot/../data/player_matches.json" | convertfrom-json -Depth 100
try {
$player_matches = get-content "$scriptroot/../data/player_matches.json" | convertfrom-json -Depth 100
}
catch {
Write-Output 'Unable to read file exitin'
}
$new_win_matches = $player_matches[-1].new_win_matches