mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-04 09:45:29 +00:00
Fix log parser
This commit is contained in:
parent
9a7f1f002f
commit
609366235c
2 changed files with 5 additions and 4 deletions
AutoTrackR2
|
@ -483,13 +483,13 @@ function Read-LogEntry {
|
|||
}
|
||||
}
|
||||
|
||||
<#
|
||||
|
||||
# Monitor the log file and process new lines as they are added
|
||||
Get-Content -Path $logFilePath -Wait -Tail 0 | ForEach-Object {
|
||||
Read-LogEntry $_
|
||||
}
|
||||
#>
|
||||
|
||||
<#
|
||||
# Open the log file with shared access for reading and writing
|
||||
$fileStream = [System.IO.FileStream]::new($logFilePath, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read, [System.IO.FileShare]::ReadWrite)
|
||||
$reader = [System.IO.StreamReader]::new($fileStream, [System.Text.Encoding]::UTF8) # Ensure we're reading as UTF-8
|
||||
|
@ -516,4 +516,5 @@ finally {
|
|||
# Ensure we close the reader and file stream properly when done
|
||||
$reader.Close()
|
||||
$fileStream.Close()
|
||||
}
|
||||
}
|
||||
#>
|
|
@ -9,7 +9,7 @@ namespace AutoTrackR2
|
|||
{
|
||||
public partial class UpdatePage : UserControl
|
||||
{
|
||||
private string currentVersion = "v2.06-test";
|
||||
private string currentVersion = "v2.06-release";
|
||||
private string latestVersion;
|
||||
|
||||
public UpdatePage()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue