mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-25 05:47:44 +00:00
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:
@@ -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() ) {
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user