feat: add override helper functions
These help us keep track of relevant metadata information about overrides, so that we know what they are when we update a pack. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
6131346e2f
commit
7024acac06
3 changed files with 81 additions and 0 deletions
20
launcher/modplatform/helpers/OverrideUtils.h
Normal file
20
launcher/modplatform/helpers/OverrideUtils.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#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.
|
||||
*/
|
||||
void createOverrides(QString name, QString parent_folder, QString override_path);
|
||||
|
||||
/** 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.
|
||||
*/
|
||||
QStringList readOverrides(QString name, QString parent_folder);
|
||||
|
||||
} // namespace Override
|
Loading…
Add table
Add a link
Reference in a new issue