Update antidetect qemu patch

This commit is contained in:
Gregory Lirent 2024-07-26 20:54:13 +03:00
parent d4ffce104b
commit 504174cd0c
Signed by: lirent
GPG Key ID: F616BE337EFFEE77

View File

@ -4,7 +4,7 @@ diff -Naur --no-dereference a/hw/input/adb-kbd.c b/hw/input/adb-kbd.c
@@ -356,7 +356,7 @@ @@ -356,7 +356,7 @@
} }
static QemuInputHandler adb_keyboard_handler = { static const QemuInputHandler adb_keyboard_handler = {
- .name = "QEMU ADB Keyboard", - .name = "QEMU ADB Keyboard",
+ .name = "ASUS ADB Keyboard", + .name = "ASUS ADB Keyboard",
.mask = INPUT_EVENT_MASK_KEY, .mask = INPUT_EVENT_MASK_KEY,
@ -40,14 +40,14 @@ diff -Naur --no-dereference a/hw/input/hid.c b/hw/input/hid.c
@@ -511,20 +511,20 @@ @@ -511,20 +511,20 @@
} }
static QemuInputHandler hid_keyboard_handler = { static const QemuInputHandler hid_keyboard_handler = {
- .name = "QEMU HID Keyboard", - .name = "QEMU HID Keyboard",
+ .name = "ASUS HID Keyboard", + .name = "ASUS HID Keyboard",
.mask = INPUT_EVENT_MASK_KEY, .mask = INPUT_EVENT_MASK_KEY,
.event = hid_keyboard_event, .event = hid_keyboard_event,
}; };
static QemuInputHandler hid_mouse_handler = { static const QemuInputHandler hid_mouse_handler = {
- .name = "QEMU HID Mouse", - .name = "QEMU HID Mouse",
+ .name = "ASUS HID Mouse", + .name = "ASUS HID Mouse",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL, .mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL,
@ -55,7 +55,7 @@ diff -Naur --no-dereference a/hw/input/hid.c b/hw/input/hid.c
.sync = hid_pointer_sync, .sync = hid_pointer_sync,
}; };
static QemuInputHandler hid_tablet_handler = { static const QemuInputHandler hid_tablet_handler = {
- .name = "QEMU HID Tablet", - .name = "QEMU HID Tablet",
+ .name = "ASUS HID Tablet", + .name = "ASUS HID Tablet",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_ABS, .mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_ABS,
@ -67,7 +67,7 @@ diff -Naur --no-dereference a/hw/input/ps2.c b/hw/input/ps2.c
@@ -1232,7 +1232,7 @@ @@ -1232,7 +1232,7 @@
}; };
static QemuInputHandler ps2_keyboard_handler = { static const QemuInputHandler ps2_keyboard_handler = {
- .name = "QEMU PS/2 Keyboard", - .name = "QEMU PS/2 Keyboard",
+ .name = "ASUS PS/2 Keyboard", + .name = "ASUS PS/2 Keyboard",
.mask = INPUT_EVENT_MASK_KEY, .mask = INPUT_EVENT_MASK_KEY,
@ -76,7 +76,7 @@ diff -Naur --no-dereference a/hw/input/ps2.c b/hw/input/ps2.c
@@ -1243,7 +1243,7 @@ @@ -1243,7 +1243,7 @@
} }
static QemuInputHandler ps2_mouse_handler = { static const QemuInputHandler ps2_mouse_handler = {
- .name = "QEMU PS/2 Mouse", - .name = "QEMU PS/2 Mouse",
+ .name = "ASUS PS/2 Mouse", + .name = "ASUS PS/2 Mouse",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL, .mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL,
@ -99,7 +99,7 @@ diff -Naur --no-dereference a/hw/input/tsc210x.c b/hw/input/tsc210x.c
+++ b/hw/input/tsc210x.c +++ b/hw/input/tsc210x.c
@@ -1122,7 +1122,7 @@ @@ -1122,7 +1122,7 @@
s->model = 0x2102; s->model = 0x2102;
s->name = "tsc2102" s->name = "tsc2102";
- tsc210x_init(s, "QEMU TSC2102-driven Touchscreen", &vmstate_tsc2102); - tsc210x_init(s, "QEMU TSC2102-driven Touchscreen", &vmstate_tsc2102);
+ tsc210x_init(s, "ASUS TSC2102-driven Touchscreen", &vmstate_tsc2102); + tsc210x_init(s, "ASUS TSC2102-driven Touchscreen", &vmstate_tsc2102);
@ -118,8 +118,7 @@ diff -Naur --no-dereference a/hw/input/tsc210x.c b/hw/input/tsc210x.c
diff -Naur --no-dereference a/hw/input/virtio-input-hid.c b/hw/input/virtio-input-hid.c diff -Naur --no-dereference a/hw/input/virtio-input-hid.c b/hw/input/virtio-input-hid.c
--- a/hw/input/virtio-input-hid.c --- a/hw/input/virtio-input-hid.c
+++ b/hw/input/virtio-input-hid.c +++ b/hw/input/virtio-input-hid.c
@@ -16,9 +16,9 @@ @@ -17,7 +17,7 @@
#include "standard-headers/linux/input.h" #include "standard-headers/linux/input.h"
-#define VIRTIO_ID_NAME_KEYBOARD "QEMU Virtio Keyboard" -#define VIRTIO_ID_NAME_KEYBOARD "QEMU Virtio Keyboard"
@ -131,4 +130,3 @@ diff -Naur --no-dereference a/hw/input/virtio-input-hid.c b/hw/input/virtio-inpu
+#define VIRTIO_ID_NAME_TABLET "ASUS Tablet" +#define VIRTIO_ID_NAME_TABLET "ASUS Tablet"
+#define VIRTIO_ID_NAME_MULTITOUCH "ASUS MultiTouch" +#define VIRTIO_ID_NAME_MULTITOUCH "ASUS MultiTouch"
/* ----------------------------------------------------------------- */