浏览代码

win-capture: Add hook exception for Just Cause 3

jp9000 10 年之前
父节点
当前提交
deca80531e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      plugins/win-capture/graphics-hook/dxgi-capture.cpp

+ 2 - 1
plugins/win-capture/graphics-hook/dxgi-capture.cpp

@@ -34,7 +34,8 @@ static bool setup_dxgi(IDXGISwapChain *swap)
 	 * context when it's actually a d3d11 context.  Why this is I don't
 	 * quite know. */
 	if (_strcmpi(process_name, "iw6sp64_ship.exe") == 0 ||
-	    _strcmpi(process_name, "iw6mp64_ship.exe") == 0) {
+	    _strcmpi(process_name, "iw6mp64_ship.exe") == 0 ||
+	    _strcmpi(process_name, "justcause3.exe") == 0) {
 		ignore_d3d10 = true;
 	}