From d98ace3161514158f8e21e7aa7b0c9d41fe38c4b Mon Sep 17 00:00:00 2001 From: Julian POIDEVIN Date: Fri, 3 Nov 2017 10:51:31 +0100 Subject: [PATCH] Code cleanup --- mainwindow.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 22a4f64..ff3d1b8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -759,18 +759,8 @@ int MainWindow::loadKernelExtension(QFile *kernelFile) //Execute commande line processStatus |= executeProcess(&process,command,arguments); - //logger->write("Unloading previous kext : "); - /*** Unload previous kext file ***/ - //TODO find a way to execute process as root - //command = "sudo -S kextunload -v /System/Library/Extensions/AppleGraphicsPowerManagement.kext"; - //arguments.clear(); - //arguments << "-v" << "/System/Library/Extensions/AppleGraphicsPowerManagement.kext"; - //Execute commande line - //processStatus |= executeProcess(&process,command,arguments); - logger->write("Loading modified kext : "); /*** Finally load kext file ***/ - //TODO find a way to execute process as root command = "sudo -S kextload -v /tmp/AppleGraphicsPowerManagement.kext"; arguments.clear(); //Execute commande line