From 0e1f5ad25b25df7c2ec707ec45c544288eb3c683 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Tue, 19 Mar 2013 07:22:20 +0000 Subject: Cleanups and version bump --- src/mess/machine/nes_unif.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mess/machine/nes_unif.c') diff --git a/src/mess/machine/nes_unif.c b/src/mess/machine/nes_unif.c index 08d963ba7fc..cf801d6ac85 100644 --- a/src/mess/machine/nes_unif.c +++ b/src/mess/machine/nes_unif.c @@ -160,14 +160,14 @@ const unif *nes_unif_lookup( const char *board ) void unif_mapr_setup( const char *board, int *pcb_id, int *battery, int *prgram, int *vram_chunks ) { - const unif *unif_board = nes_unif_lookup(board); + const unif *unif_board = nes_unif_lookup(board); if (unif_board == NULL) fatalerror("Unknown UNIF board %s.\n", board); - + *pcb_id = unif_board->board_idx; - *battery = unif_board->nvwram; // we should implement battery banks based on the size of this... - *prgram = unif_board->wram; // we should implement WRAM banks based on the size of this... - + *battery = unif_board->nvwram; // we should implement battery banks based on the size of this... + *prgram = unif_board->wram; // we should implement WRAM banks based on the size of this... + if (unif_board->chrram <= CHRRAM_8) *vram_chunks = 1; else if (unif_board->chrram == CHRRAM_16) -- cgit v1.2.3-70-g09d2