mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 10:02:30 +00:00
fix(file): added missing file functions on Windows
This commit is contained in:
parent
481a1f3e15
commit
87a8d3f643
2 changed files with 7 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ bool read_init(Blizzard::File::StreamRecord* file, void* data, LPOVERLAPPED over
|
||||||
return read_func(file, data, overlapped, count);
|
return read_func(file, data, overlapped, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool write_init(Blizzard::File::StreamRecord* file, void* data, LPOVERLAPPED overlapped, LPDWORD count) {
|
bool write_init(Blizzard::File::StreamRecord* file, const void* data, LPOVERLAPPED overlapped, LPDWORD count) {
|
||||||
Blizzard::Lock::DoOnce(s_write_init, detect_io_mode, nullptr);
|
Blizzard::Lock::DoOnce(s_write_init, detect_io_mode, nullptr);
|
||||||
return write_func(file, data, overlapped, count);
|
return write_func(file, data, overlapped, count);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "bc/file/Defines.hpp"
|
||||||
#if defined(WHOA_SYSTEM_WIN)
|
#if defined(WHOA_SYSTEM_WIN)
|
||||||
|
|
||||||
#include "bc/system/file/Stacked.hpp"
|
#include "bc/system/file/Stacked.hpp"
|
||||||
|
|
@ -212,6 +213,11 @@ bool Close(FileParms* parms) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Create(FileParms* parms) {
|
||||||
|
BC_FILE_SET_ERROR(9);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool GetWorkingDirectory(FileParms* parms) {
|
bool GetWorkingDirectory(FileParms* parms) {
|
||||||
if (!parms->buffer || !parms->buffersize) {
|
if (!parms->buffer || !parms->buffersize) {
|
||||||
// System_File::FileError(8)
|
// System_File::FileError(8)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue