mirror of https://github.com/mgba-emu/mgba.git
mVL: Endianness fixes
This commit is contained in:
parent
026d71a1f5
commit
e27ac1268a
|
@ -296,11 +296,16 @@ bool mVideoLoggerRendererRun(struct mVideoLogger* logger, bool block) {
|
||||||
mVideoLoggerRendererRunInjected(logger);
|
mVideoLoggerRendererRunInjected(logger);
|
||||||
ignorePackets = channel->ignorePackets;
|
ignorePackets = channel->ignorePackets;
|
||||||
}
|
}
|
||||||
|
struct mVideoLoggerDirtyInfo buffer = {0};
|
||||||
struct mVideoLoggerDirtyInfo item = {0};
|
struct mVideoLoggerDirtyInfo item = {0};
|
||||||
while (logger->readData(logger, &item, sizeof(item), block)) {
|
while (logger->readData(logger, &buffer, sizeof(buffer), block)) {
|
||||||
|
LOAD_32LE(item.type, 0, &buffer.type);
|
||||||
if (ignorePackets & (1 << item.type)) {
|
if (ignorePackets & (1 << item.type)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
LOAD_32LE(item.address, 0, &buffer.address);
|
||||||
|
LOAD_32LE(item.value, 0, &buffer.value);
|
||||||
|
LOAD_32LE(item.value2, 0, &buffer.value2);
|
||||||
switch (item.type) {
|
switch (item.type) {
|
||||||
case DIRTY_SCANLINE:
|
case DIRTY_SCANLINE:
|
||||||
if (channel && channel->injectionPoint == LOGGER_INJECTION_FIRST_SCANLINE && !channel->injecting && item.address == 0) {
|
if (channel && channel->injectionPoint == LOGGER_INJECTION_FIRST_SCANLINE && !channel->injecting && item.address == 0) {
|
||||||
|
|
Loading…
Reference in New Issue