Mercurial > repos > blastem
comparison system.c @ 1595:360d5bab199f
Update controller config when changed in UI without restart
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 06 Jul 2018 17:39:59 -0700 |
parents | aee2177a1630 |
children | 5dacaef602a7 7b62e6805e6a |
comparison
equal
deleted
inserted
replaced
1594:137dbd05ceab | 1595:360d5bab199f |
---|---|
46 } | 46 } |
47 } | 47 } |
48 return SYSTEM_UNKNOWN; | 48 return SYSTEM_UNKNOWN; |
49 } | 49 } |
50 | 50 |
51 system_header *alloc_config_system(system_type stype, system_media *media, uint32_t opts, uint8_t force_region, rom_info *info_out) | 51 system_header *alloc_config_system(system_type stype, system_media *media, uint32_t opts, uint8_t force_region) |
52 { | 52 { |
53 void *lock_on = NULL; | 53 void *lock_on = NULL; |
54 uint32_t lock_on_size = 0; | 54 uint32_t lock_on_size = 0; |
55 if (media->chain) { | 55 if (media->chain) { |
56 lock_on = media->chain->buffer; | 56 lock_on = media->chain->buffer; |
57 lock_on_size = media->chain->size; | 57 lock_on_size = media->chain->size; |
58 } | 58 } |
59 switch (stype) | 59 switch (stype) |
60 { | 60 { |
61 case SYSTEM_GENESIS: | 61 case SYSTEM_GENESIS: |
62 return &(alloc_config_genesis(media->buffer, media->size, lock_on, lock_on_size, opts, force_region, info_out))->header; | 62 return &(alloc_config_genesis(media->buffer, media->size, lock_on, lock_on_size, opts, force_region))->header; |
63 #ifndef NO_Z80 | 63 #ifndef NO_Z80 |
64 case SYSTEM_SMS: | 64 case SYSTEM_SMS: |
65 return &(alloc_configure_sms(media, opts, force_region, info_out))->header; | 65 return &(alloc_configure_sms(media, opts, force_region))->header; |
66 #endif | 66 #endif |
67 default: | 67 default: |
68 return NULL; | 68 return NULL; |
69 } | 69 } |
70 } | 70 } |