add debug setting to load deck and ready on join (#5409)

* new property

* refactor deck loading to new method

* another new method

* works now
This commit is contained in:
RickyRister 2025-01-02 14:08:51 -08:00 committed by GitHub
parent 8a427955e7
commit 0402d4b853
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 37 additions and 3 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();
}