Mercurial > repos > blastem
comparison romdb.c @ 1394:ae3b1721b226
Small fix to handling of the "bus" option in a RAM type ROM DB memory map
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 05 Jun 2017 23:03:46 -0700 |
parents | 071e761bcdcf |
children | efa7225e0f07 |
comparison
equal
deleted
inserted
replaced
1393:0aaf2946117c | 1394:ae3b1721b226 |
---|---|
812 } | 812 } |
813 map->buffer = malloc(size); | 813 map->buffer = malloc(size); |
814 map->mask = calc_mask(size, start, end); | 814 map->mask = calc_mask(size, start, end); |
815 map->flags = MMAP_READ | MMAP_WRITE; | 815 map->flags = MMAP_READ | MMAP_WRITE; |
816 char *bus = tern_find_ptr_default(node, "bus", "both"); | 816 char *bus = tern_find_ptr_default(node, "bus", "both"); |
817 if (!strcmp(dtype, "odd")) { | 817 if (!strcmp(bus, "odd")) { |
818 map->flags |= MMAP_ONLY_ODD; | 818 map->flags |= MMAP_ONLY_ODD; |
819 } else if (!strcmp(dtype, "even")) { | 819 } else if (!strcmp(bus, "even")) { |
820 map->flags |= MMAP_ONLY_EVEN; | 820 map->flags |= MMAP_ONLY_EVEN; |
821 } else { | 821 } else { |
822 map->flags |= MMAP_CODE; | 822 map->flags |= MMAP_CODE; |
823 } | 823 } |
824 } else if (!strcmp(dtype, "Sega mapper")) { | 824 } else if (!strcmp(dtype, "Sega mapper")) { |