ovni/test/unit/emu.c

33 lines
472 B
C

#include "emu/emu.h"
#include "common.h"
int main(void)
{
char *argv[] = {
"ovniemu",
"/home/ram/bsc/ovni/traces/test/ovni",
NULL
};
int argc = 2;
struct emu emu;
if (emu_init(&emu, argc, argv) != 0)
die("emu_init failed\n");
if (emu_connect(&emu) != 0)
die("emu_connect failed\n");
int ret = 0;
while ((ret = emu_step(&emu)) == 0) {
//err("event clock %ld\n", emu.player.deltaclock);
}
if (ret < 0)
die("emu_step failed\n");
return 0;
}