From 902b877c409b1907dbbb9cfc816441f5f73ba933 Mon Sep 17 00:00:00 2001 From: wheremyfoodat Date: Mon, 16 Jan 2023 21:39:12 +0200 Subject: [PATCH] [IOFIle] Add constructors --- include/io_file.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/io_file.hpp b/include/io_file.hpp index 9a26a240..58618db1 100644 --- a/include/io_file.hpp +++ b/include/io_file.hpp @@ -22,6 +22,9 @@ class IOFile { static inline std::filesystem::path appData = ""; // Directory for holding app data. AppData on Windows public: + IOFile() {} + IOFile(FILE* handle) : handle(handle) {} + bool isOpen() { return handle != nullptr; }