summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2021-03-03 00:51:55 -0800
committerAndreas Kling <kling@serenityos.org>2021-03-03 11:05:16 +0100
commit84a399de5d977009b07652bf2dfefaff163693f8 (patch)
tree1ec685482477ecf8177dcf68ac0190e8a7ff3fbe /Kernel/Devices
parent74881ac649742ea5b1b34c78ee365440e04ef046 (diff)
downloadserenity-84a399de5d977009b07652bf2dfefaff163693f8.zip
Kernel: Move Kernel CommandLine parsing to strongly typed API.
Previously all of the CommandLine parsing was spread out around the Kernel. Instead move it all into the Kernel CommandLine class, and expose a strongly typed API for querying the state of options.
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/VMWareBackdoor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/VMWareBackdoor.cpp b/Kernel/Devices/VMWareBackdoor.cpp
index 87311ceb26..5ba1b993a1 100644
--- a/Kernel/Devices/VMWareBackdoor.cpp
+++ b/Kernel/Devices/VMWareBackdoor.cpp
@@ -118,7 +118,7 @@ VMWareBackdoor* VMWareBackdoor::the()
UNMAP_AFTER_INIT VMWareBackdoor::VMWareBackdoor()
{
- if (kernel_command_line().lookup("vmmouse").value_or("on") == "on")
+ if (kernel_command_line().is_vmmouse_enabled())
enable_absolute_vmmouse();
}