OSDN Git Service

Moved some more OS-specific functions into the MUtilities library.
[lamexp/LameXP.git] / src / Main.cpp
index b93b683..90ab4ea 100644 (file)
@@ -219,7 +219,7 @@ static int lamexp_main(int &argc, char **argv)
        //Shotdown computer
        if(iShutdown > shutdownFlag_None)
        {
-               if(!lamexp_shutdown_computer(QApplication::applicationFilePath(), 12, true, (iShutdown == shutdownFlag_Hibernate)))
+               if(!MUtils::OS::shutdown_computer(QApplication::applicationFilePath(), 12, true, (iShutdown == shutdownFlag_Hibernate)))
                {
                        QMessageBox messageBox(QMessageBox::Critical, "LameXP", "Sorry, LameXP was unable to shutdown your computer!", QMessageBox::NoButton, NULL, Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint | Qt::WindowStaysOnTopHint);
                }