aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu/util/util.h')
-rw-r--r--src/yuzu/util/util.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/yuzu/util/util.h b/src/yuzu/util/util.h
index 4094cf6c2b..7b482aa11d 100644
--- a/src/yuzu/util/util.h
+++ b/src/yuzu/util/util.h
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
// SPDX-FileCopyrightText: 2015 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
@@ -6,6 +9,7 @@
#include <filesystem>
#include <QFont>
#include <QString>
+#include "common/uuid.h"
/// Returns a QFont object appropriate to use as a monospace font for debugging widgets, etc.
[[nodiscard]] QFont GetMonospaceFont();
@@ -27,3 +31,15 @@
* @return bool If the operation succeeded
*/
[[nodiscard]] bool SaveIconToFile(const std::filesystem::path& icon_path, const QImage& image);
+
+/**
+ * Prompt the user for a profile ID. If there is only one valid profile, returns that profile.
+ * @return The selected profile, or an std::nullopt if none were selected
+ */
+const std::optional<Common::UUID> GetProfileID();
+
+/**
+ * Prompt the user for a profile ID. If there is only one valid profile, returns that profile.
+ * @return A string representation of the selected profile, or an empty string if none were seleeced
+ */
+std::string GetProfileIDString();