checking...
This commit is contained in:
1 parent
4977f4476c
commit
21b66d8337
3 files changed
+12
-26
No files matched your search
@@ -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");
|
||||
|
||||
@@ -25,13 +25,4 @@ namespace anm2ed::util::filesystem
|
||||
~WorkingDirectory();
|
||||
};
|
||||
|
||||
class File
|
||||
{
|
||||
public:
|
||||
FILE* internal{};
|
||||
|
||||
File(const std::filesystem::path&, const char*);
|
||||
~File();
|
||||
FILE* get();
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user