profile_select.cpp 708 B

1234567891011121314151617181920
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "core/frontend/applets/profile_select.h"
  5. #include "core/hle/service/acc/profile_manager.h"
  6. #include "core/settings.h"
  7. namespace Core::Frontend {
  8. ProfileSelectApplet::~ProfileSelectApplet() = default;
  9. void DefaultProfileSelectApplet::SelectProfile(
  10. std::function<void(std::optional<Common::UUID>)> callback) const {
  11. Service::Account::ProfileManager manager;
  12. callback(manager.GetUser(Settings::values.current_user).value_or(Common::UUID{}));
  13. LOG_INFO(Service_ACC, "called, selecting current user instead of prompting...");
  14. }
  15. } // namespace Core::Frontend