Ticket #4572: gamehandler_verbose.diff

File gamehandler_verbose.diff, 1.3 KB (added by greg, 13 years ago)
  • gamehandler.cpp

     
    8080    query.next();
    8181    handler->rompath = query.value(0).toString();
    8282    handler->workingpath = query.value(1).toString();
     83    VERBOSE(VB_GENERAL, LOC + QString("Reading Working path from db = %1").arg(handler->workingpath));
     84
    8385    handler->commandline = query.value(2).toString();
    8486    handler->screenshots = query.value(3).toString();
    8587    handler->gameplayerid = query.value(4).toInt();
     
    847849
    848850    QString savedir = QDir::currentDirPath ();
    849851    QDir d;
     852    VERBOSE(VB_GENERAL, LOC + QString("Pre exec SystemWorkingPath value = %1").arg(handler->SystemWorkingPath()));
    850853    if (handler->SystemWorkingPath()) {
     854        VERBOSE(VB_GENERAL, LOC + "Changing directory");
    851855        if (!d.cd(handler->SystemWorkingPath()))
    852856        {
    853857            VERBOSE(VB_GENERAL, LOC_ERR + QString("Failed to change to specified Working Directory: %1")
    854858                                          .arg(handler->SystemWorkingPath()));
    855859        }
     860        else
     861            VERBOSE(VB_GENERAL, LOC + "Path successfully changed!");
    856862    }
    857863    VERBOSE(VB_GENERAL, LOC + QString("Launching Game : %1 : %2")
    858864                              .arg(handler->SystemName())