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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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: