mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 20:13:56 -07:00
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:
parent
bb4214e28a
commit
8a427955e7
4 changed files with 26 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
@ -12,6 +12,9 @@ class DebugSettings : public SettingsManager
|
|||
|
||||
public:
|
||||
bool getShowCardId();
|
||||
|
||||
bool getLocalGameOnStartup();
|
||||
int getLocalGamePlayerCount();
|
||||
};
|
||||
|
||||
#endif // DEBUG_SETTINGS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue