Mercurial > repos > blastem
comparison system.c @ 1692:5dacaef602a7 segacd
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 05 Jan 2019 00:58:08 -0800 |
parents | a763523dadf4 360d5bab199f |
children | 3414a4423de1 |
comparison
equal
deleted
inserted
replaced
1504:95b3a1a8b26c | 1692:5dacaef602a7 |
---|---|
50 } | 50 } |
51 } | 51 } |
52 return SYSTEM_UNKNOWN; | 52 return SYSTEM_UNKNOWN; |
53 } | 53 } |
54 | 54 |
55 system_header *alloc_config_system(system_type stype, system_media *media, uint32_t opts, uint8_t force_region, rom_info *info_out) | 55 system_header *alloc_config_system(system_type stype, system_media *media, uint32_t opts, uint8_t force_region) |
56 { | 56 { |
57 void *lock_on = NULL; | 57 void *lock_on = NULL; |
58 uint32_t lock_on_size = 0; | 58 uint32_t lock_on_size = 0; |
59 if (media->chain) { | 59 if (media->chain) { |
60 lock_on = media->chain->buffer; | 60 lock_on = media->chain->buffer; |
61 lock_on_size = media->chain->size; | 61 lock_on_size = media->chain->size; |
62 } | 62 } |
63 switch (stype) | 63 switch (stype) |
64 { | 64 { |
65 case SYSTEM_GENESIS: | 65 case SYSTEM_GENESIS: |
66 return &(alloc_config_genesis(media->buffer, media->size, lock_on, lock_on_size, opts, force_region, info_out))->header; | 66 return &(alloc_config_genesis(media->buffer, media->size, lock_on, lock_on_size, opts, force_region))->header; |
67 case SYSTEM_SEGACD: | 67 case SYSTEM_SEGACD: |
68 return &(alloc_config_genesis_cdboot(media, opts, force_region, info_out))->header; | 68 return &(alloc_config_genesis_cdboot(media, opts, force_region))->header; |
69 #ifndef NO_Z80 | 69 #ifndef NO_Z80 |
70 case SYSTEM_SMS: | 70 case SYSTEM_SMS: |
71 return &(alloc_configure_sms(media, opts, force_region, info_out))->header; | 71 return &(alloc_configure_sms(media, opts, force_region))->header; |
72 #endif | 72 #endif |
73 default: | 73 default: |
74 return NULL; | 74 return NULL; |
75 } | 75 } |
76 } | 76 } |