mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-22 03:02:39 +00:00
Improve File error handling. Massive effects...
API is somewhat stolen from Rust std::fs::File. Static factories didn't work out so well, though. Move semantics made my head explode. TODO: Still a lot of places where errors aren't handled, but it's an improvement...
This commit is contained in:
@@ -33,9 +33,10 @@
|
||||
|
||||
class PNGWriter {
|
||||
public:
|
||||
explicit PNGWriter(const std::string& filename);
|
||||
~PNGWriter();
|
||||
|
||||
Optional<File::Error> create(const std::string& filename);
|
||||
|
||||
void write_scanline(const std::array<ui::ColorRGB888, 240>& scanline);
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user