xpam/mainwindow.cpp
//Temporary things which need to be run due to insufficient updater capabilities

Temporary things which need to be run due to insufficient updater capabilities
Temporary things which need to be run due to insufficient updater capabilities
void MainWindow::tmpPlumbing() {
    QFile f1(config->EUROPATH+"/euro3icons.bni");
    if (f1.exists()) {
        QFile f11(config->APPDATA_BNET_DOWNLOADS+"/euro3icons.bni");
        if (f11.exists()) {
            f11.remove();
        }
        bool f1b = f1.rename(config->APPDATA_BNET_DOWNLOADS+"/euro3icons.bni");
        if (f1b) qDebug() << "f1 renamed";
        else qDebug() << "f1 renamed failed";
    }
    else {
        Logger::log("Ignoring f1, foes not exist", config);
    }
    QFile f2(config->EUROPATH+"/bncache.dat");
    if (f2.exists()) {
        QFile f22(config->APPDATA_BNET_CACHE+"/bncache.dat");
        if (f22.exists()) {
            f22.remove();
        }
        bool f2b = f2.rename(config->APPDATA_BNET_CACHE+"/bncache.dat");
        if (f2b) qDebug() << "f2 renamed";
        else qDebug() << "f2 renamed failed";
    }
    else {
        Logger::log("Ignoring f2, foes not exist", config);
    }
}
void MainWindow :: tmpPlumbing ( ) { QFile f1 ( config -> EUROPATH + " " ) ; if ( f1 . exists ( ) ) { QFile f11 ( config -> APPDATA_BNET_DOWNLOADS + " " ) ; if ( f11 . exists ( ) ) { f11 . remove ( ) ; } bool f1b = f1 . rename ( config -> APPDATA_BNET_DOWNLOADS + " " ) ; if ( f1b ) qDebug ( ) << " " ; else qDebug ( ) << " " ; } else { Logger :: log ( " " , config ) ; } QFile f2 ( config -> EUROPATH + " " ) ; if ( f2 . exists ( ) ) { QFile f22 ( config -> APPDATA_BNET_CACHE + " " ) ; if ( f22 . exists ( ) ) { f22 . remove ( ) ; } bool f2b = f2 . rename ( config -> APPDATA_BNET_CACHE + " " ) ; if ( f2b ) qDebug ( ) << " " ; else qDebug ( ) << " " ; } else { Logger :: log ( " " , config ) ; } }
Temporary things which need to be run due to insufficient updater capabilities
Temporary things which need to be run due to insufficient updater capabilities