mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-06 01:53:25 -08:00
[Server] Persist and serve deck sync fields + version rows
This commit is contained in:
parent
10d46bafbd
commit
a03f4c2fa4
5 changed files with 160 additions and 16 deletions
|
|
@ -1122,6 +1122,11 @@ int Servatrice::getDeckShareMaxSharesPerDay() const
|
|||
return settingsCache->value("deck_share/max_shares_per_day", 50).toInt();
|
||||
}
|
||||
|
||||
int Servatrice::getDeckSyncMaxVersions() const
|
||||
{
|
||||
return qMax(1, settingsCache->value("deck_sync/max_versions", 20).toInt());
|
||||
}
|
||||
|
||||
int Servatrice::getNumberOfTCPPools() const
|
||||
{
|
||||
return settingsCache->value("server/number_pools", 1).toInt();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue