profile_manager: Create save data if it doesn't exist on use

This commit is contained in:
Zach Hilman
2018-10-14 14:49:32 -04:00
parent 45f2a2fe29
commit bfad41b0c1
4 changed files with 43 additions and 19 deletions

View File

@ -163,7 +163,7 @@ void ConfigureSystem::UpdateCurrentUser() {
void ConfigureSystem::ReadSystemSettings() {}
std::string ConfigureSystem::GetAccountUsername(Service::Account::UUID uuid) {
std::string ConfigureSystem::GetAccountUsername(Service::Account::UUID uuid) const {
Service::Account::ProfileBase profile;
if (!profile_manager->GetProfileBase(uuid, profile))
return "";