FileSystem: Migrate component extractors to std::string_view

This commit is contained in:
Connor McLaughlin
2021-02-16 00:48:14 +10:00
parent 8c7aec2edf
commit cacf12c209
6 changed files with 38 additions and 54 deletions

View File

@ -587,7 +587,7 @@ static void DoChangeDiscFromFile()
};
OpenFileSelector(ICON_FA_COMPACT_DISC " Select Disc Image", false, std::move(callback), GetDiscImageFilters(),
FileSystem::GetPathDirectory(System::GetMediaFileName().c_str()));
std::string(FileSystem::GetPathDirectory(System::GetMediaFileName().c_str())));
}
static void DoChangeDisc()
@ -950,7 +950,7 @@ static bool SettingInfoButton(const SettingInfo& si, const char* section)
CloseFileSelector();
};
OpenFileSelector(si.visible_name, false, std::move(callback), ImGuiFullscreen::FileSelectorFilters(),
FileSystem::GetPathDirectory(value.c_str()).c_str());
std::string(FileSystem::GetPathDirectory(value.c_str())));
}
return false;