[Base] Removed useless path_to_utf8 conversion while using fmt
Default filesystem::path formatter was added to fmt around 2022
This commit is contained in:
@@ -18,8 +18,7 @@ namespace vfs {
|
||||
std::unique_ptr<Device> XContentContainerDevice::CreateContentDevice(
|
||||
const std::string_view mount_path, const std::filesystem::path& host_path) {
|
||||
if (!std::filesystem::exists(host_path)) {
|
||||
XELOGE("Path to XContent container does not exist: {}",
|
||||
xe::path_to_utf8(host_path));
|
||||
XELOGE("Path to XContent container does not exist: {}", host_path);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -75,8 +74,7 @@ XContentContainerDevice::~XContentContainerDevice() {}
|
||||
|
||||
bool XContentContainerDevice::Initialize() {
|
||||
if (!std::filesystem::exists(host_path_)) {
|
||||
XELOGE("Path to XContent container does not exist: {}",
|
||||
xe::path_to_utf8(host_path_));
|
||||
XELOGE("Path to XContent container does not exist: {}", host_path_);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -84,7 +82,7 @@ bool XContentContainerDevice::Initialize() {
|
||||
return false;
|
||||
}
|
||||
|
||||
XELOGI("Loading XContent header file: {}", xe::path_to_utf8(host_path_));
|
||||
XELOGI("Loading XContent header file: {}", host_path_);
|
||||
auto header_file = xe::filesystem::OpenFile(host_path_, "rb");
|
||||
if (!header_file) {
|
||||
XELOGE("Error opening XContent header file.");
|
||||
|
||||
Reference in New Issue
Block a user