i swear i'm gonna kill him (#378)
Co-authored-by: rackover <roxanne@thegamebakers.com> Co-authored-by: Edo <edoardo.sanguineti222@gmail.com>
This commit is contained in:
parent
50ff5fb713
commit
e88811e980
@ -19,14 +19,15 @@ namespace Components
|
||||
{
|
||||
auto* buf = AllocateFile(len + 1);
|
||||
|
||||
Game::FS_Read(buf, len, handle);
|
||||
[[maybe_unused]] auto bytesRead = Game::FS_Read(buf, len, handle);
|
||||
|
||||
assert(bytesRead == len);
|
||||
|
||||
buf[len] = '\0';
|
||||
|
||||
Game::FS_FCloseFile(handle);
|
||||
|
||||
this->buffer = buf;
|
||||
|
||||
this->buffer.append(buf, len);
|
||||
FreeFile(buf);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user