Skip to content

Commit

Permalink
Merged branch develop into master
Browse files Browse the repository at this point in the history
  • Loading branch information
KodamaSakuno committed May 28, 2016
2 parents e5120a7 + bb9a79f commit 3b0f5d2
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 139 deletions.
2 changes: 1 addition & 1 deletion HeavenlyWind.Base/ProductInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public static class ProductInfo
public const string AppName = "いんてりじぇんと連装砲くん";
public const string ProductName = "Intelligent Naval Gun";

public const string AssemblyVersionString = "0.1.10.1";
public const string AssemblyVersionString = "0.1.10.2";

public static string Version => AssemblyVersionString;
public static string ReleaseCodeName => "Tiramisu";
Expand Down
8 changes: 4 additions & 4 deletions HeavenlyWind.Game/Services/Records/BattleDetailRecords.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ protected override void UpgradeFromOldVersion(int rpOldVersion)
byte[] CompressJson(JToken rpJsonToken)
{
using (var rMemoryStream = new MemoryStream())
using (var rCompressStream = new DeflateStream(rMemoryStream, CompressionMode.Compress))
using (var rStreamWriter = new StreamWriter(rCompressStream))
using (var rJsonTextWriter = new JsonTextWriter(rStreamWriter))
{
rpJsonToken.WriteTo(rJsonTextWriter);
using (var rCompressStream = new DeflateStream(rMemoryStream, CompressionMode.Compress))
using (var rStreamWriter = new StreamWriter(rCompressStream))
using (var rJsonTextWriter = new JsonTextWriter(rStreamWriter))
rpJsonToken.WriteTo(rJsonTextWriter);

return rMemoryStream.ToArray();
}
Expand Down
6 changes: 6 additions & 0 deletions HeavenlyWind/Services/Browser/BrowserWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using System.Reflection;
using System.Threading;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Media;

Expand Down Expand Up @@ -58,6 +59,11 @@ static BrowserWrapper()
public BrowserWrapper(string rpLayoutEngine, int rpHostProcessID)
{
r_Container = new ContentControl();
r_Container.PreviewKeyDown += (_, e) =>
{
if (e.Key == Key.System)
e.Handled = true;
};

InitializeCommunicator(rpHostProcessID);

Expand Down
Loading

0 comments on commit 3b0f5d2

Please sign in to comment.