forked from rosebudai/OpenRCT2-Web
Refactor memory stream
Clean up a few things.
This commit is contained in:
1 parent
b21378b7f5
commit
652cad15c4
5 files changed
+19
-19
No files matched your search
@@ -350,7 +350,7 @@ private:
|
||||
// Buffer the rest of file into memory to speed up item reading
|
||||
size_t dataSize = (size_t)(fs.GetLength() - fs.GetPosition());
|
||||
void * data = fs.ReadArray<uint8>(dataSize);
|
||||
auto ms = MemoryStream(data, dataSize, MEMORY_ACCESS_READ | MEMORY_ACCESS_OWNER);
|
||||
auto ms = MemoryStream(data, dataSize, MEMORY_ACCESS::READ | MEMORY_ACCESS::OWNER);
|
||||
|
||||
// Read items
|
||||
for (uint32 i = 0; i < header.NumItems; i++)
|
||||
|
||||
Reference in new issue
Block a user