new property

This commit is contained in:
RickyRister 2025-01-02 01:58:35 -08:00
parent 8a427955e7
commit 9ab5ebc84a
2 changed files with 7 additions and 0 deletions

View file

@ -24,4 +24,9 @@ bool DebugSettings::getLocalGameOnStartup()
int DebugSettings::getLocalGamePlayerCount()
{
return getValue("playerCount", "localgame").toInt();
}
QString DebugSettings::getDeckPathForPlayer(const QString &playerName)
{
return getValue(playerName, "localgame", "deck").toString();
}

View file

@ -15,6 +15,8 @@ public:
bool getLocalGameOnStartup();
int getLocalGamePlayerCount();
QString getDeckPathForPlayer(const QString &playerName);
};
#endif // DEBUG_SETTINGS_H