staging some future refactoring, .h -> hpp, fix for rendering w/ audio

This commit is contained in:
2026-03-09 23:08:57 -04:00
parent 77f6e65b15
commit 2d27b7e8fb
76 changed files with 0 additions and 0 deletions

22
src/util/file_.hpp Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
#include <filesystem>
namespace anm2ed::util
{
class File
{
public:
File() = default;
File(const std::filesystem::path&, const char* mode);
~File();
bool open(const std::filesystem::path&, const char* mode);
int close();
FILE* get() const;
explicit operator bool() const;
private:
FILE* handle{};
};
}