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