30 lines
409 B
C
30 lines
409 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");
|
|
|
|
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;
|
|
}
|