From 9ab5ebc84ac409794450aa9427fed583cb0d7608 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Thu, 2 Jan 2025 01:58:35 -0800 Subject: [PATCH] new property --- cockatrice/src/settings/debug_settings.cpp | 5 +++++ cockatrice/src/settings/debug_settings.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/cockatrice/src/settings/debug_settings.cpp b/cockatrice/src/settings/debug_settings.cpp index a329e58a9..75276a091 100644 --- a/cockatrice/src/settings/debug_settings.cpp +++ b/cockatrice/src/settings/debug_settings.cpp @@ -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(); } \ No newline at end of file diff --git a/cockatrice/src/settings/debug_settings.h b/cockatrice/src/settings/debug_settings.h index 4918a9a79..89ea33e4e 100644 --- a/cockatrice/src/settings/debug_settings.h +++ b/cockatrice/src/settings/debug_settings.h @@ -15,6 +15,8 @@ public: bool getLocalGameOnStartup(); int getLocalGamePlayerCount(); + + QString getDeckPathForPlayer(const QString &playerName); }; #endif // DEBUG_SETTINGS_H