From 07c5fe013c140221760ce9599a25846de9068cbf Mon Sep 17 00:00:00 2001 From: meli <57847713+ff-meli@users.noreply.github.com> Date: Sun, 12 Jan 2020 08:13:50 -0800 Subject: [PATCH] Remove renderdoc debug helpers --- Dalamud/Interface/InterfaceManager.cs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/Dalamud/Interface/InterfaceManager.cs b/Dalamud/Interface/InterfaceManager.cs index 96c49d856..2bbf4474f 100644 --- a/Dalamud/Interface/InterfaceManager.cs +++ b/Dalamud/Interface/InterfaceManager.cs @@ -1,5 +1,3 @@ -//#define RENDERDOC_HACKS - using System; using System.Runtime.InteropServices; using Dalamud.Game; @@ -27,20 +25,6 @@ namespace Dalamud.Interface { public class InterfaceManager : IDisposable { -#if RENDERDOC_HACKS - [DllImport("user32.dll", SetLastError = true)] - static extern IntPtr FindWindow(string lpClassName, string lpWindowName); - - [DllImport("RDocHelper.dll")] - static extern IntPtr GetWrappedDevice(IntPtr window); - - [DllImport("RDocHelper.dll")] - static extern void StartCapture(IntPtr device, IntPtr window); - - [DllImport("RDocHelper.dll")] - static extern uint EndCapture(); -#endif - [UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate IntPtr PresentDelegate(IntPtr swapChain, uint syncInterval, uint presentFlags); @@ -98,13 +82,7 @@ namespace Dalamud.Interface { if (this.scene == null) { -#if RENDERDOC_HACKS - var hWnd = FindWindow(null, "FINAL FANTASY XIV"); - var device = GetWrappedDevice(hWnd); - this.scene = new RawDX11Scene(device, swapChain); -#else this.scene = new RawDX11Scene(swapChain); -#endif this.scene.OnBuildUI += HandleMouseUI; this.ReadyToDraw?.Invoke(this, null); }