| 34 | } |
| 35 | |
| 36 | QStringList readOverrides(const QString& name, const QString& parent_folder) |
| 37 | { |
| 38 | QString file_path(FS::PathCombine(parent_folder, name + ".txt")); |
| 39 | |
| 40 | QFile file(file_path); |
| 41 | if (!file.exists()) |
| 42 | return {}; |
| 43 | |
| 44 | QStringList previous_overrides; |
| 45 | |
| 46 | file.open(QFile::ReadOnly); |
| 47 | |
| 48 | QString entry; |
| 49 | do { |
| 50 | entry = file.readLine(); |
| 51 | previous_overrides.append(entry.trimmed()); |
| 52 | } while (!entry.isEmpty()); |
| 53 | |
| 54 | file.close(); |
| 55 | |
| 56 | return previous_overrides; |
| 57 | } |
| 58 | |
| 59 | } // namespace Override |
no test coverage detected