2022-07-29 07:04:24 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
namespace Override {
|
|
|
|
|
|
|
|
/** This creates a file in `parent_folder` that holds information about which
|
|
|
|
* overrides are in `override_path`.
|
|
|
|
*
|
|
|
|
* If there's already an existing such file, it will be ovewritten.
|
|
|
|
*/
|
2022-09-26 15:20:31 +05:30
|
|
|
void createOverrides(const QString& name, const QString& parent_folder, const QString& override_path);
|
2022-07-29 07:04:24 +05:30
|
|
|
|
|
|
|
/** This reads an existing overrides archive, returning a list of overrides.
|
|
|
|
*
|
|
|
|
* If there's no such file in `parent_folder`, it will return an empty list.
|
|
|
|
*/
|
2022-09-26 15:20:31 +05:30
|
|
|
QStringList readOverrides(const QString& name, const QString& parent_folder);
|
2022-07-29 07:04:24 +05:30
|
|
|
|
|
|
|
} // namespace Override
|