Pass the mode through to open from the File constructor
diff --git a/32blit/engine/file.hpp b/32blit/engine/file.hpp
index ba4bc3f..c43d3e4 100644
--- a/32blit/engine/file.hpp
+++ b/32blit/engine/file.hpp
@@ -29,7 +29,7 @@
class File final {
public:
File() = default;
- File(std::string filename, int mode = OpenMode::read) {open(filename, OpenMode::read);}
+ File(std::string filename, int mode = OpenMode::read) {open(filename, mode);}
File(const File &) = delete;
File(File &&other) noexcept {
*this = std::move(other);