Ignore:
Timestamp:
Aug 31, 2016, 5:31:04 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.8.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/cleanconfig.cpp

    r176 r181  
    55
    66#define DO_REMOVE
     7//#define REMOVE_FILE_SETTINGS
    78
    89void CleanConfig::clean(const QString & config_path) {
    910        qDebug("CleanConfig::clean");
    1011
     12        QStringList files;
     13        files << "smplayer.ini" << "styles.ass" << "smplayer_files.ini"
     14          << "ytcode.script" << "yt.js" << "sig.ini" << "player_info.ini"
     15          << "device_info.ini" << "hdpi.ini" << "playlist.ini";
     16
    1117        QStringList files_to_delete;
    1218
    13         QString s = config_path + "/smplayer.ini";
    14         if (QFile::exists(s)) files_to_delete << s;
     19        foreach(QString f, files) {
     20                QString s = config_path +"/"+ f;
     21                if (QFile::exists(s)) files_to_delete << s;
     22        }
    1523
    16         s = config_path + "/styles.ass";
    17         if (QFile::exists(s)) files_to_delete << s;
    18 
    19         s = config_path + "/smplayer_files.ini";
    20         if (QFile::exists(s)) files_to_delete << s;
    21 
    22         s = config_path + "/ytcode.script";
    23         if (QFile::exists(s)) files_to_delete << s;
    24 
    25         s = config_path + "/yt.js";
    26         if (QFile::exists(s)) files_to_delete << s;
    27        
    28         s = config_path + "/player_info.ini";
    29         if (QFile::exists(s)) files_to_delete << s;
    30 
    31         s = config_path + "/file_settings";
     24#ifdef REMOVE_FILE_SETTINGS
     25        QString s = config_path + "/file_settings";
    3226        if (QFile::exists(s)) files_to_delete << listDir(s);
     27#endif
    3328
    3429        printf("Deleting files:\n");
Note: See TracChangeset for help on using the changeset viewer.