fix build
This commit is contained in:
parent
21875865c4
commit
e04e63907b
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
||||||
LDFLAGS = $(shell pkg-config --libs sdl2 r_util r_io)
|
LDFLAGS = $(shell pkg-config --libs sdl2 r_util r_io)
|
||||||
CFLAGS = -Wall -I include/ $(shell pkg-config --cflags sdl2 r_util r_io)
|
CFLAGS = -Wall -I include/ $(shell pkg-config --cflags sdl2 r_util r_io r_arch r_esil)
|
||||||
|
|
||||||
all: sdl/pixbuf.o io/timers.o io/mbc1.o io/mbc2.o io/joypad.o io/dma.o
|
all: sdl/pixbuf.o io/timers.o io/mbc1.o io/mbc2.o io/joypad.o io/dma.o
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#ifndef GB_H
|
#ifndef GB_H
|
||||||
#define GB_H
|
#define GB_H
|
||||||
|
#include <ragb_sdl.h>
|
||||||
#include <r_io.h>
|
#include <r_io.h>
|
||||||
|
#include <r_arch.h>
|
||||||
|
#include <r_esil.h>
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
GB_TIMERS_DIV = 0,
|
GB_TIMERS_DIV = 0,
|
||||||
|
@ -110,7 +113,7 @@ typedef struct gameboy_t {
|
||||||
|
|
||||||
} GB;
|
} GB;
|
||||||
|
|
||||||
GBPPU *gb_ppu_open (RIO *io)
|
GBPPU *gb_ppu_open (RIO *io);
|
||||||
void gb_ppu_update (GB *gb, ut32 cycles);
|
void gb_ppu_update (GB *gb, ut32 cycles);
|
||||||
void gb_ppu_close (GBPPU *ppu);
|
void gb_ppu_close (GBPPU *ppu);
|
||||||
|
|
||||||
|
|
2
io/dma.c
2
io/dma.c
|
@ -193,7 +193,7 @@ GBDMA *gb_dma_open (RIO *io) {
|
||||||
memset (uri, 0x00, sizeof (char) * 64);
|
memset (uri, 0x00, sizeof (char) * 64);
|
||||||
strcpy (uri, "malloc://0xa0");
|
strcpy (uri, "malloc://0xa0");
|
||||||
dma->oam_fd = r_io_fd_open (io, uri, R_PERM_RWX, 0);
|
dma->oam_fd = r_io_fd_open (io, uri, R_PERM_RWX, 0);
|
||||||
if (oam_fd < 0) {
|
if (dma->oam_fd < 0) {
|
||||||
r_io_bank_free (bank);
|
r_io_bank_free (bank);
|
||||||
free (dma);
|
free (dma);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user