Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-poidevin committed Nov 3, 2017
1 parent de2dea1 commit d98ace3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d98ace3

Please sign in to comment.