Create retro_file, and have libretrodb use it

This commit is contained in:
twinaphex 2015-09-17 19:57:51 +02:00
parent 22597e2604
commit 55e54a30b4
12 changed files with 382 additions and 378 deletions

View file

@ -162,15 +162,16 @@ static struct rmsgpack_read_callbacks stub_callbacks = {
int main(void)
{
int fd;
struct stub_state state;
RFILE *fd = retro_fopen("test.msgpack", RFILE_MODE_READ, 0);
state.i = 0;
state.stack[0] = 0;
fd = open("test.msgpack", O_RDONLY);
rmsgpack_read(fd, &stub_callbacks, &state);
printf("Test succeeded.\n");
close(fd);
retro_fclose(fd);
return 0;
}