From 2071d8e545b9aca6af08852f721e9a7b7a617398 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 29 Apr 2020 01:00:57 -0700 Subject: WIP netplay support --- psg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'psg.c') diff --git a/psg.c b/psg.c index a165f3b..7893208 100644 --- a/psg.c +++ b/psg.c @@ -5,6 +5,7 @@ */ #include "psg.h" #include "blastem.h" +#include "event_log.h" #include #include #include @@ -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; -- cgit v1.2.3