diff options
Diffstat (limited to 'libs/game_bethesda/src/gamebryo/gamegamebryo.h')
| -rw-r--r-- | libs/game_bethesda/src/gamebryo/gamegamebryo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/game_bethesda/src/gamebryo/gamegamebryo.h b/libs/game_bethesda/src/gamebryo/gamegamebryo.h index 78ac1d4..c926c4e 100644 --- a/libs/game_bethesda/src/gamebryo/gamegamebryo.h +++ b/libs/game_bethesda/src/gamebryo/gamegamebryo.h @@ -148,7 +148,13 @@ protected: WORD getArch(QString const& program) const; - static QString determineMyGamesPath(const QString& gameName); + // createIfMissing=false is the safe default: the per-game plugin ctor + // calls this for every installed Bethesda game and we don't want to + // spam `Documents/My Games/<GameName>` directories for games the user + // isn't actually managing (see issue #55). Pass true only when we + // know the game is installed and likely to be used. + static QString determineMyGamesPath(const QString& gameName, + bool createIfMissing = false); static QString parseEpicGamesLocation(const QStringList& manifests); |
