Refactor updateInstanceRoot() to BaseInstance

Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
Yihe Li
2025-03-27 04:51:13 +08:00
parent abac3db125
commit 7ea5b6173c
6 changed files with 69 additions and 70 deletions

View File

@@ -117,6 +117,9 @@ class BaseInstance : public QObject, public std::enable_shared_from_this<BaseIns
/// Path to the instance's root directory.
QString instanceRoot() const;
/// Update instanceRoot to make it sync with name/id; return true if a refresh is needed
bool updateInstanceRoot(QWidget* parent);
/// Path to the instance's game root directory.
virtual QString gameRoot() const { return instanceRoot(); }