This commit is contained in:
momo5502
2016-05-16 17:17:25 +02:00
parent f637670e52
commit 18f4bb0a44
5 changed files with 15 additions and 10 deletions

View File

@ -41,7 +41,7 @@ namespace Utils
{
//if (stream == XFILE_BLOCK_TEMP || stream == XFILE_BLOCK_VIRTUAL || stream == XFILE_BLOCK_PHYSICAL) // Only those seem to actually write data.
// As I'm not sure though, I'll still write the data
// Use IncreaseStreamSize to fill virtual streams
// Use IncreaseBlockSize to fill virtual streams
auto data = Stream::Data();
if (Stream::IsCriticalSection() && Stream::Length() + (size * count) > Stream::Capacity())
@ -58,7 +58,7 @@ namespace Utils
__debugbreak();
}
Stream::IncreaseBlockSize(stream, size * count); // stay up to date on those streams
Stream::IncreaseBlockSize(stream, size * count);
return Stream::At() - (size * count);
}
@ -177,7 +177,7 @@ namespace Utils
{
if (!Stream::StreamStack.empty())
{
return Stream::StreamStack[Stream::StreamStack.size() - 1];
return Stream::StreamStack.back();
}
return Game::XFILE_BLOCK_INVALID;