Changeset 179 for smplayer/vendor/current/src/cleanconfig.cpp
- Timestamp:
- Aug 31, 2016, 5:19:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/cleanconfig.cpp
r175 r179 5 5 6 6 #define DO_REMOVE 7 //#define REMOVE_FILE_SETTINGS 7 8 8 9 void CleanConfig::clean(const QString & config_path) { 9 10 qDebug("CleanConfig::clean"); 10 11 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 11 17 QStringList files_to_delete; 12 18 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 } 15 23 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"; 32 26 if (QFile::exists(s)) files_to_delete << listDir(s); 27 #endif 33 28 34 29 printf("Deleting files:\n");
Note:
See TracChangeset
for help on using the changeset viewer.