FatFs: Enable long file name support.

Lots of re-plumbing to make this work, including a bunch of Unicode stuff now in the binary. Bloat City, I'm sure.

TODO: FatFs using unsigned (uint16_t) for UTF16 representation is kinda inconvenient. Lots of reinterpret_cast<>().
This commit is contained in:
Jared Boone
2016-08-21 18:06:39 -07:00
parent 43a11ba048
commit f7bfde73b6
20 changed files with 68 additions and 58 deletions

View File

@@ -50,7 +50,7 @@ static constexpr std::array<uint8_t, 12> png_iend { {
} };
Optional<File::Error> PNGWriter::create(
const std::string& filename
const std::filesystem::path& filename
) {
const auto create_error = file.create(filename);
if( create_error.is_valid() ) {

View File

@@ -35,7 +35,7 @@ class PNGWriter {
public:
~PNGWriter();
Optional<File::Error> create(const std::string& filename);
Optional<File::Error> create(const std::filesystem::path& filename);
void write_scanline(const std::array<ui::ColorRGB888, 240>& scanline);