fix user creation

This commit is contained in:
Narr the Reg
2024-01-24 20:19:27 -06:00
committed by german77
parent f5bf73069d
commit e58881cb9c
3 changed files with 5 additions and 5 deletions

View File

@@ -329,7 +329,7 @@ bool ProfileManager::GetProfileBaseAndData(const ProfileInfo& user, ProfileBase&
/// Returns if the system is allowing user registrations or not
bool ProfileManager::CanSystemRegisterUser() const {
return false; // TODO(ogniK): Games shouldn't have
return true; // TODO(ogniK): Games shouldn't have
// access to user registration, when we
// emulate qlaunch. Update this to dynamically change.
}

View File

@@ -302,20 +302,20 @@ void ILibraryAppletSelfAccessor::GetCurrentApplicationId(HLERequestContext& ctx)
void ILibraryAppletSelfAccessor::GetMainAppletAvailableUsers(HLERequestContext& ctx) {
const Service::Account::ProfileManager manager{};
bool is_empty{true};
bool can_select_any_user{};
s32 user_count{-1};
LOG_INFO(Service_AM, "called");
if (manager.GetUserCount() > 0) {
is_empty = false;
can_select_any_user = true;
user_count = static_cast<s32>(manager.GetUserCount());
ctx.WriteBuffer(manager.GetAllUsers());
}
IPC::ResponseBuilder rb{ctx, 4};
rb.Push(ResultSuccess);
rb.Push<u8>(is_empty);
rb.Push<u8>(can_select_any_user);
rb.Push(user_count);
}

View File

@@ -306,7 +306,7 @@ ISystemSettingsServer::ISystemSettingsServer(Core::System& system_)
SetupSettings();
Time::Clock::SteadyClockTimePoint timestamp{
PSC::Time::SteadyClockTimePoint timestamp{
.time_point = 1691079299,
.clock_source_id = Common::UUID::MakeRandom(),
};