mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
Replace std::filesystem::u8path with TODO
This commit is contained in:
parent
bcb1c6c080
commit
68dd25a4a5
1 changed files with 9 additions and 1 deletions
|
@ -815,7 +815,15 @@ bool package_reader::fill_data(std::map<std::string, install_entry*>& all_instal
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
const std::string true_path = std::filesystem::weakly_canonical(std::filesystem::u8path(path)).string();
|
// TODO: check for valid utf8 characters
|
||||||
|
const std::string true_path = std::filesystem::weakly_canonical(path).string();
|
||||||
|
if (true_path.empty())
|
||||||
|
{
|
||||||
|
num_failures++;
|
||||||
|
pkg_log.error("Failed to get weakly_canonical path for '%s'", path);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
auto map_ptr = &*all_install_entries.try_emplace(true_path).first;
|
auto map_ptr = &*all_install_entries.try_emplace(true_path).first;
|
||||||
|
|
||||||
m_install_entries.push_back({
|
m_install_entries.push_back({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue