From 40314cc58646e9e91e961e0d82b7d1b53bd839a0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 22 Sep 2021 17:52:37 -0400 Subject: common/uuid: Add validity checking functions to interface Given we have a function to invalidate, we should also have ones to query the validity. Also makes the code more straightforward to read. --- src/core/hle/service/am/applets/applet_profile_select.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hle/service/am/applets/applet_profile_select.cpp') diff --git a/src/core/hle/service/am/applets/applet_profile_select.cpp b/src/core/hle/service/am/applets/applet_profile_select.cpp index bdc21778e..a6e891944 100644 --- a/src/core/hle/service/am/applets/applet_profile_select.cpp +++ b/src/core/hle/service/am/applets/applet_profile_select.cpp @@ -60,7 +60,7 @@ void ProfileSelect::Execute() { void ProfileSelect::SelectionComplete(std::optional uuid) { UserSelectionOutput output{}; - if (uuid.has_value() && uuid->uuid != Common::INVALID_UUID) { + if (uuid.has_value() && uuid->IsValid()) { output.result = 0; output.uuid_selected = uuid->uuid; } else { -- cgit v1.2.3