From 9b39e4d69e85ddde966e19eca001d42d580c8a2a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 23 Sep 2021 12:40:59 +0200 Subject: [PATCH] Add raw prv ev method to specify the time --- prv.c | 9 ++++++++- prv.h | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/prv.c b/prv.c index 1e569e0..909d058 100644 --- a/prv.c +++ b/prv.c @@ -3,6 +3,7 @@ #include "ovni.h" #include "emu.h" +#include "prv.h" void prv_ev(FILE *f, int row, int64_t time, int type, int val) @@ -10,10 +11,16 @@ prv_ev(FILE *f, int row, int64_t time, int type, int val) fprintf(f, "2:0:1:1:%d:%ld:%d:%d\n", row, time, type, val); } +void +prv_ev_thread_raw(struct ovni_emu *emu, int row, int64_t time, int type, int val) +{ + prv_ev(emu->prv_thread, row, time, type, val); +} + void prv_ev_thread(struct ovni_emu *emu, int row, int type, int val) { - prv_ev(emu->prv_thread, row, emu->delta_time, type, val); + prv_ev_thread_raw(emu, row, emu->delta_time, type, val); } void diff --git a/prv.h b/prv.h index a64ae26..eea6a50 100644 --- a/prv.h +++ b/prv.h @@ -25,6 +25,9 @@ enum prv_type { void prv_ev(FILE *f, int row, int64_t time, int type, int val); +void +prv_ev_thread_raw(struct ovni_emu *emu, int row, int64_t time, int type, int val); + void prv_ev_thread(struct ovni_emu *emu, int row, int type, int val);