Skip to content

Commit 7ea2455

Browse files
author
Requiem
committed
adjusted Direct 3D libraries
1 parent b39581f commit 7ea2455

2 files changed

Lines changed: 20 additions & 28 deletions

File tree

src/vmaware.hpp

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
*
2828
*
2929
* ============================== SECTIONS ==================================
30-
* - enums for publicly accessible techniques => line 555
31-
* - struct for internal cpu operations => line 739
32-
* - struct for internal memoization => line 1210
33-
* - struct for internal utility functions => line 1334
34-
* - struct for internal core components => line 9950
35-
* - start of VM detection technique list => line 2361
36-
* - start of public VM detection functions => line 10614
37-
* - start of externally defined variables => line 11553
30+
* - enums for publicly accessible techniques => line 551
31+
* - struct for internal cpu operations => line 734
32+
* - struct for internal memoization => line 1206
33+
* - struct for internal utility functions => line 1330
34+
* - struct for internal core components => line 9946
35+
* - start of VM detection technique list => line 2357
36+
* - start of public VM detection functions => line 10610
37+
* - start of externally defined variables => line 11549
3838
*
3939
*
4040
* ============================== EXAMPLE ===================================
@@ -368,8 +368,6 @@
368368
#include <mmsystem.h>
369369
#include <dxgi.h>
370370
#include <d3d9.h>
371-
#include <d3d11.h>
372-
#include <d3d12.h>
373371

374372
#pragma comment(lib, "winmm.lib")
375373
#pragma comment(lib, "setupapi.lib")
@@ -383,10 +381,8 @@
383381
#pragma comment(lib, "uuid.lib")
384382
#pragma comment(lib, "ntdll.lib")
385383
#pragma comment(lib, "powrprof.lib")
386-
#pragma comment(lib, "d3d9.lib")
387-
#pragma comment(lib, "d3d11.lib")
388-
#pragma comment(lib, "d3d12.lib")
389384
#pragma comment(lib, "dxgi.lib")
385+
#pragma comment(lib, "d3d9.lib")
390386

391387
#elif (LINUX)
392388
#if (x86)
@@ -7704,9 +7700,9 @@ struct VM {
77047700

77057701
#if (WINDOWS)
77067702
constexpr u16 qpcRatioThreshold = 70; // QPC ratio threshold
7703+
#endif
77077704
constexpr u8 tscIterations = 10; // Number of iterations for the TSC synchronization check
77087705
constexpr u16 tscSyncDiffThreshold = 5000; // TSC difference threshold
7709-
#endif
77107706

77117707
// to minimize context switching/scheduling
77127708
#if (WINDOWS)

src/vmaware_MIT.hpp

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@
4949
*
5050
*
5151
* ============================== SECTIONS ==================================
52-
* - enums for publicly accessible techniques => line 555
53-
* - struct for internal cpu operations => line 754
54-
* - struct for internal memoization => line 1226
55-
* - struct for internal utility functions => line 1351
56-
* - struct for internal core components => line 9756
57-
* - start of VM detection technique list => line 2380
58-
* - start of public VM detection functions => line 10431
59-
* - start of externally defined variables => line 11372
52+
* - enums for publicly accessible techniques => line 573
53+
* - struct for internal cpu operations => line 750
54+
* - struct for internal memoization => line 1222
55+
* - struct for internal utility functions => line 1347
56+
* - struct for internal core components => line 9752
57+
* - start of VM detection technique list => line 2376
58+
* - start of public VM detection functions => line 10427
59+
* - start of externally defined variables => line 11368
6060
*
6161
*
6262
* ============================== EXAMPLE ===================================
@@ -390,8 +390,6 @@
390390
#include <mmsystem.h>
391391
#include <dxgi.h>
392392
#include <d3d9.h>
393-
#include <d3d11.h>
394-
#include <d3d12.h>
395393

396394
#pragma comment(lib, "winmm.lib")
397395
#pragma comment(lib, "setupapi.lib")
@@ -405,10 +403,8 @@
405403
#pragma comment(lib, "uuid.lib")
406404
#pragma comment(lib, "ntdll.lib")
407405
#pragma comment(lib, "powrprof.lib")
408-
#pragma comment(lib, "d3d9.lib")
409-
#pragma comment(lib, "d3d11.lib")
410-
#pragma comment(lib, "d3d12.lib")
411406
#pragma comment(lib, "dxgi.lib")
407+
#pragma comment(lib, "d3d9.lib")
412408

413409
#elif (LINUX)
414410
#if (x86)
@@ -7509,9 +7505,9 @@ struct VM {
75097505

75107506
#if (WINDOWS)
75117507
constexpr u16 qpcRatioThreshold = 70; // QPC ratio threshold
7508+
#endif
75127509
constexpr u8 tscIterations = 10; // Number of iterations for the TSC synchronization check
75137510
constexpr u16 tscSyncDiffThreshold = 5000; // TSC difference threshold
7514-
#endif
75157511

75167512
// to minimize context switching/scheduling
75177513
#if (WINDOWS)

0 commit comments

Comments
 (0)