Skip to content

Commit

Permalink
Preliminary secondary data directory support
Browse files Browse the repository at this point in the history
  • Loading branch information
Silarn committed Sep 4, 2023
1 parent 559c89b commit 97ab60a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/iplugingame.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ class IPluginGame : public QObject, public IPlugin
*/
virtual QDir dataDirectory() const = 0;

/**
* this function may be called before init()
*
* @return directories where we may find data files outside the main location
*/
virtual QList<QDir> secondaryDataDirectories() const = 0;

This comment has been minimized.

Copy link
@Holt59

Holt59 Sep 5, 2023

Member

This should not be pure virtual but simply be defaulted to return an empty list.


/**
* @brief set the path to the managed game
* @param path to the game
Expand Down

0 comments on commit 97ab60a

Please sign in to comment.