diff options
author | Michael Pavone <pavone@retrodev.com> | 2020-04-29 01:00:57 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2020-04-29 01:00:57 -0700 |
commit | 2071d8e545b9aca6af08852f721e9a7b7a617398 (patch) | |
tree | 75148c6c893661c0e6b0bada4c7ca5b71cd8255d /psg.c | |
parent | 6641d3825bb931c5af37b98fc6420c972cfb3fd1 (diff) |
WIP netplay support
Diffstat (limited to 'psg.c')
-rw-r--r-- | psg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5,6 +5,7 @@ */ #include "psg.h" #include "blastem.h" +#include "event_log.h" #include <string.h> #include <stdlib.h> #include <stdio.h> @@ -35,6 +36,7 @@ void psg_write(psg_context * context, uint8_t value) if (context->vgm) { vgm_sn76489_write(context->vgm, context->cycles, value); } + event_log(EVENT_PSG_REG, context->cycles, sizeof(value), &value); if (value & 0x80) { context->latch = value & 0x70; uint8_t channel = value >> 5 & 0x3; |