checking...

This commit is contained in:
2025-12-13 02:51:10 -05:00
parent 4977f4476c
commit 21b66d8337
3 changed files with 12 additions and 26 deletions

View File

@@ -20,19 +20,6 @@ namespace anm2ed::util::filesystem
}
}
File::File(const std::filesystem::path& path, const char* mode)
{
#ifdef _WIN32
_wfopen_s(&this->internal, path.c_str(), mode);
#else
this->internal = fopen(path.c_str(), mode);
#endif
}
File::~File() { fclose(this->internal); }
FILE* File::get() { return internal; }
std::filesystem::path path_preferences_get()
{
auto path = SDL_GetPrefPath(nullptr, "anm2ed");

View File

@@ -25,13 +25,4 @@ namespace anm2ed::util::filesystem
~WorkingDirectory();
};
class File
{
public:
FILE* internal{};
File(const std::filesystem::path&, const char*);
~File();
FILE* get();
};
}