Some nits and fixes on paths (#1190)

* Some nits and fixes

* More path conversions

* Add some more logging

* Log the path too
This commit is contained in:
Paris Oplopoios
2024-10-02 07:18:00 +03:00
committed by GitHub
parent ee1e55d5e1
commit d20efcb0d2
6 changed files with 31 additions and 19 deletions

View File

@@ -205,9 +205,9 @@ public:
return WriteSpan(string);
}
static void WriteBytes(const std::filesystem::path path, std::span<const u8> data) {
static size_t WriteBytes(const std::filesystem::path path, std::span<const u8> data) {
IOFile out(path, FileAccessMode::Write);
out.Write(data);
return out.Write(data);
}
private: