|
|
|
@ -6,6 +6,7 @@ |
|
|
|
#include <memory> |
|
|
|
#include <memory> |
|
|
|
|
|
|
|
|
|
|
|
#include "utils/stdcompat/string_view.hpp" |
|
|
|
#include "utils/stdcompat/string_view.hpp" |
|
|
|
|
|
|
|
#include "utils/stdcompat/optional.hpp" |
|
|
|
|
|
|
|
|
|
|
|
namespace devilution { |
|
|
|
namespace devilution { |
|
|
|
|
|
|
|
|
|
|
|
@ -14,7 +15,7 @@ bool FileExistsAndIsWriteable(const char *path); |
|
|
|
bool GetFileSize(const char *path, std::uintmax_t *size); |
|
|
|
bool GetFileSize(const char *path, std::uintmax_t *size); |
|
|
|
bool ResizeFile(const char *path, std::uintmax_t size); |
|
|
|
bool ResizeFile(const char *path, std::uintmax_t size); |
|
|
|
void RemoveFile(const char *lpFileName); |
|
|
|
void RemoveFile(const char *lpFileName); |
|
|
|
std::unique_ptr<std::fstream> CreateFileStream(const char *path, std::ios::openmode mode); |
|
|
|
std::optional<std::fstream> CreateFileStream(const char *path, std::ios::openmode mode); |
|
|
|
FILE *FOpen(const char *path, const char *mode); |
|
|
|
FILE *FOpen(const char *path, const char *mode); |
|
|
|
|
|
|
|
|
|
|
|
#if defined(_WIN64) || defined(_WIN32) |
|
|
|
#if defined(_WIN64) || defined(_WIN32) |
|
|
|
|