aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/acc/profile_manager.h
diff options
context:
space:
mode:
authorAndrew Pilley <anpilley@users.noreply.github.com>2024-01-17 09:06:45 -0800
committerAndrew Pilley <anpilley@users.noreply.github.com>2024-01-17 10:31:00 -0800
commitdff0a7c52a73a3989b788b5328a782e995f07c8c (patch)
tree810018315b3a2399de10e952095adaabb28cc7ad /src/core/hle/service/acc/profile_manager.h
parent915efa42365d2734a7f34f9d51fbf187135989d7 (diff)
Allow -u to accept a username string in addition to index, and suppress the User selector even if settings requires it to be shown for one instance only.
Diffstat (limited to 'src/core/hle/service/acc/profile_manager.h')
-rw-r--r--src/core/hle/service/acc/profile_manager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h
index e21863e64..f94157300 100644
--- a/src/core/hle/service/acc/profile_manager.h
+++ b/src/core/hle/service/acc/profile_manager.h
@@ -70,6 +70,7 @@ public:
std::optional<Common::UUID> GetUser(std::size_t index) const;
std::optional<std::size_t> GetUserIndex(const Common::UUID& uuid) const;
std::optional<std::size_t> GetUserIndex(const ProfileInfo& user) const;
+ std::optional<std::size_t> GetUserIndex(const std::string& username) const;
bool GetProfileBase(std::optional<std::size_t> index, ProfileBase& profile) const;
bool GetProfileBase(Common::UUID uuid, ProfileBase& profile) const;
bool GetProfileBase(const ProfileInfo& user, ProfileBase& profile) const;