fix user creation
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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(),
|
||||
};
|
||||
|
Reference in New Issue
Block a user