Skip to content

Commit 8859b6b

Browse files
authored
Merge pull request #346 from kernelwernel/main
sync dev
2 parents 06ee1e8 + 5c56b32 commit 8859b6b

File tree

2 files changed

+628
-662
lines changed

2 files changed

+628
-662
lines changed

src/vmaware.hpp

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
*
2828
*
2929
* ============================== SECTIONS ==================================
30-
* - enums for publicly accessible techniques => line 551
30+
* - enums for publicly accessible techniques => line 550
3131
* - 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
32+
* - struct for internal memoization => line 1205
33+
* - struct for internal utility functions => line 1329
34+
* - struct for internal core components => line 9948
35+
* - start of VM detection technique list => line 2356
36+
* - start of public VM detection functions => line 10612
37+
* - start of externally defined variables => line 11551
3838
*
3939
*
4040
* ============================== EXAMPLE ===================================
@@ -9379,8 +9379,8 @@ struct VM {
93799379

93809380
constexpr const char* targets[] = {
93819381
"Parallels Software International", "Parallels(R)", "innotek",
9382-
"Oracle", "VirtualBox", "VS2005R2", "VMware, Inc.",
9383-
"VMware", "VMWARE", "S3 Corp.", "Virtual Machine", "Qemu", "vbox",
9382+
"Oracle", "VirtualBox", "vbox", "VBOX", "VS2005R2", "VMware, Inc.",
9383+
"VMware", "VMWARE", "S3 Corp.", "Virtual Machine", "QEMU", "FWCF",
93849384
"WAET", "BOCHS", "BXPC"
93859385
};
93869386

@@ -9442,7 +9442,8 @@ struct VM {
94429442
strcmp(target, "VMware") == 0 ||
94439443
strcmp(target, "VMWARE") == 0)
94449444
brand = brands::VMWARE;
9445-
else if (strcmp(target, "Qemu") == 0)
9445+
else if (strcmp(target, "QEMU") == 0 ||
9446+
strcmp(target, "FWCF") == 0)
94469447
brand = brands::QEMU;
94479448
else if (strcmp(target, "BOCHS") == 0 ||
94489449
strcmp(target, "BXPC") == 0)
@@ -9589,8 +9590,9 @@ struct VM {
95899590
// Same targets as the Windows branch but without "WAET"
95909591
constexpr const char* targets[] = {
95919592
"Parallels Software International", "Parallels(R)", "innotek",
9592-
"Oracle", "VirtualBox", "VS2005R2", "VMware, Inc.",
9593-
"VMware", "S3 Corp.", "Virtual Machine", "Qemu", "vbox", "BOCHS", "BXPC"
9593+
"Oracle", "VirtualBox", "vbox", "VBOX", "VS2005R2", "VMware, Inc.",
9594+
"VMware", "VMWARE", "S3 Corp.", "Virtual Machine", "QEMU", "FWCF",
9595+
"BOCHS", "BXPC"
95949596
};
95959597

95969598
struct dirent* entry;
@@ -9658,7 +9660,8 @@ struct VM {
96589660
strcmp(target, "VMWARE") == 0) {
96599661
brand = brands::VMWARE;
96609662
}
9661-
else if (strcmp(target, "Qemu") == 0) {
9663+
else if (strcmp(target, "QEMU") == 0 ||
9664+
strcmp(target, "FWCF") == 0) {
96629665
brand = brands::QEMU;
96639666
}
96649667
else if (strcmp(target, "BOCHS") == 0 ||

0 commit comments

Comments
 (0)