Skip to content

Commit

Permalink
Merge branch 'hotfix-0.9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
norrisng committed Apr 4, 2020
2 parents 21d86dc + e06f81b commit ec55d98
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion FcomClient/FcomClient.Serialization/ApiManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ApiManager
/// <summary>
/// User agent string to use.
/// </summary>
private readonly string CLIENT_VERSION = "FcomClient/0.9.1";
private readonly string CLIENT_VERSION = "FcomClient/0.9.2";

/// <summary>
/// Server address, read from the file server_location.txt
Expand Down
4 changes: 0 additions & 4 deletions FcomClient/FcomClient.Serialization/FcomApiException.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FcomClient.Serialization
{
Expand Down
10 changes: 8 additions & 2 deletions FcomClient/FcomClient.UI/FcomClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,15 @@ static void OnIncomingFsdPacket(object sender, CaptureEventArgs e)
// FsdPacket trims the newline, so we have to grab the byte[] ourselves
string pktString = System.Text.Encoding.UTF8.GetString(e.Packet.Data);

string[] inputs = pktString.Split('\n');
foreach (string input in inputs)
string[] inputs = pktString.Split(new String[] { "\n" }, StringSplitOptions.None);
foreach (string line in inputs)
{
// Strip out the garbage that appears in between FSD packets
string input = Regex.Replace(line, "^.*\\$", "$", RegexOptions.Multiline);
input = Regex.Replace(input, "^.*#", "#", RegexOptions.Multiline);
input = Regex.Replace(input, "^.*%", "%", RegexOptions.Multiline);
input = Regex.Replace(input, "^.*@", "@", RegexOptions.Multiline);

// First, create a FsdPacket object from the packet
FsdPacket currPacket = new FsdPacket(timestamp, input);

Expand Down
4 changes: 2 additions & 2 deletions FcomClient/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.9")]
[assembly: AssemblyFileVersion("0.9.1")]
[assembly: AssemblyVersion("0.9.2")]
//[assembly: AssemblyFileVersion("0.9.2")]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The client that capture messages received over VATSIM / IVAO

Version 0.9.1
Version 0.9.2

## Requirements ##

Expand Down

0 comments on commit ec55d98

Please sign in to comment.