Skip to content

Commit

Permalink
DirectX11版クライアントに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowMage committed Jun 23, 2015
1 parent fd286b6 commit 1ced069
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OverlayPlugin.Common/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.3.3.6")]
[assembly: AssemblyVersion("0.3.3.7")]
5 changes: 5 additions & 0 deletions OverlayPlugin.Core/OverlayBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,15 @@ protected virtual void InitializeTimer()
{
uint pid;
var hWndFg = NativeMethods.GetForegroundWindow();
if (hWndFg == IntPtr.Zero)
{
return;
}
NativeMethods.GetWindowThreadProcessId(hWndFg, out pid);
var exePath = Process.GetProcessById((int)pid).MainModule.FileName;

if (Path.GetFileName(exePath.ToString()) == "ffxiv.exe" ||
Path.GetFileName(exePath.ToString()) == "ffxiv_dx11.exe" ||
exePath.ToString() == Process.GetCurrentProcess().MainModule.FileName)
{
this.Overlay.Visible = true;
Expand Down
2 changes: 1 addition & 1 deletion OverlayPlugin.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.3.3.6")]
[assembly: AssemblyVersion("0.3.3.7")]
2 changes: 1 addition & 1 deletion OverlayPlugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.3.3.6")]
[assembly: AssemblyVersion("0.3.3.7")]

0 comments on commit 1ced069

Please sign in to comment.