mVL: Fix injecting accidentally draining non-injection buffer

This commit is contained in:
Vicki Pfau 2020-08-08 18:14:28 -07:00
parent 729c5fd73a
commit e54a01bcaf
9 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Other fixes:
- 3DS: Fix crash with libctru 2.0 when exiting
- Qt: Add dummy English translation file (fixes mgba.io/i/1469)
- mGUI: Fix closing down a game if an exit is signalled
- mVL: Fix injecting accidentally draining non-injection buffer
- VFS: Fix directory node listing on some filesystems
0.8.3: (2020-08-03)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -997,7 +997,7 @@ static ssize_t mVideoLoggerReadChannel(struct mVideoLogChannel* channel, void* d
data = (uint8_t*) data + size;
length -= size;
}
if (!_fillBuffer(context, channelId, BUFFER_BASE_SIZE)) {
if (channel->injecting || !_fillBuffer(context, channelId, BUFFER_BASE_SIZE)) {
return size;
}
size += CircleBufferRead(buffer, data, length);