Add debug setting to start local game on startup (#5408)

* new properties

* refactor

* start local game on startup

* disable autoconnect
This commit is contained in:
RickyRister 2025-01-02 06:51:59 -08:00 committed by GitHub
parent bb4214e28a
commit 8a427955e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 26 additions and 1 deletions

View file

@ -15,3 +15,13 @@ bool DebugSettings::getShowCardId()
{
return getValue("showCardId", "debug").toBool();
}
bool DebugSettings::getLocalGameOnStartup()
{
return getValue("onStartup", "localgame").toBool();
}
int DebugSettings::getLocalGamePlayerCount()
{
return getValue("playerCount", "localgame").toInt();
}