mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
Qt: Fix a couple of error log formats
This commit is contained in:
parent
f66866ed73
commit
0065800f05
|
@ -1632,7 +1632,7 @@ std::optional<std::vector<u8>> Host::ReadResourceFile(std::string_view filename,
|
||||||
const std::string path = QtHost::GetResourcePath(filename, allow_override);
|
const std::string path = QtHost::GetResourcePath(filename, allow_override);
|
||||||
std::optional<std::vector<u8>> ret(FileSystem::ReadBinaryFile(path.c_str()));
|
std::optional<std::vector<u8>> ret(FileSystem::ReadBinaryFile(path.c_str()));
|
||||||
if (!ret.has_value())
|
if (!ret.has_value())
|
||||||
Log_ErrorPrintf("Failed to read resource file '%s'", filename);
|
Log_ErrorFmt("Failed to read resource file '{}'", filename);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1641,7 +1641,7 @@ std::optional<std::string> Host::ReadResourceFileToString(std::string_view filen
|
||||||
const std::string path = QtHost::GetResourcePath(filename, allow_override);
|
const std::string path = QtHost::GetResourcePath(filename, allow_override);
|
||||||
std::optional<std::string> ret(FileSystem::ReadFileToString(path.c_str()));
|
std::optional<std::string> ret(FileSystem::ReadFileToString(path.c_str()));
|
||||||
if (!ret.has_value())
|
if (!ret.has_value())
|
||||||
Log_ErrorPrintf("Failed to read resource file to string '%s'", filename);
|
Log_ErrorFmt("Failed to read resource file to string '{}'", filename);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1652,7 +1652,7 @@ std::optional<std::time_t> Host::GetResourceFileTimestamp(std::string_view filen
|
||||||
FILESYSTEM_STAT_DATA sd;
|
FILESYSTEM_STAT_DATA sd;
|
||||||
if (!FileSystem::StatFile(path.c_str(), &sd))
|
if (!FileSystem::StatFile(path.c_str(), &sd))
|
||||||
{
|
{
|
||||||
Log_ErrorPrintf("Failed to stat resource file '%s'", filename);
|
Log_ErrorFmt("Failed to stat resource file '{}'", filename);
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue