trunk/src/mame/machine/naomi.cpp
r252990 | r252991 | |
87 | 87 | void naomi_state::create_pic_from_retdat() |
88 | 88 | { |
89 | 89 | { |
90 | | UINT8* hexregion = memregion("pichex")->base(); |
91 | | UINT8* retregion = memregion("picreturn")->base(); |
92 | | UINT8* newregion = memregion("pic")->base(); |
| 90 | memory_region * rgn_hexregion = memregion("pichex"); |
| 91 | memory_region * rgn_retregion = memregion("picreturn"); |
| 92 | memory_region * rgn_newregion = memregion("pic"); |
93 | 93 | int outcount = 0; |
94 | 94 | |
95 | | if (hexregion && retregion && newregion) |
| 95 | if (rgn_hexregion && rgn_newregion) |
96 | 96 | { |
| 97 | UINT8* hexregion = rgn_hexregion->base(); |
| 98 | UINT8* newregion = rgn_newregion->base(); |
| 99 | |
| 100 | |
97 | 101 | int hexoffs = 0; |
98 | 102 | int line; |
99 | 103 | |
r252990 | r252991 | |
131 | 135 | |
132 | 136 | } |
133 | 137 | |
| 138 | if (rgn_retregion && rgn_newregion) |
134 | 139 | { |
| 140 | UINT8* retregion = rgn_retregion->base(); |
| 141 | UINT8* newregion = rgn_newregion->base(); |
| 142 | |
| 143 | |
135 | 144 | int i; |
136 | 145 | printf("string 1 (key1)\n"); |
137 | 146 | for (i=0;i<7;i++) |
r252990 | r252991 | |
166 | 175 | } |
167 | 176 | } |
168 | 177 | |
| 178 | if (rgn_newregion) |
| 179 | { |
| 180 | UINT8* newregion = rgn_newregion->base(); |
169 | 181 | |
170 | | { |
171 | 182 | FILE *fp; |
172 | 183 | char filename[256]; |
173 | 184 | sprintf(filename,"picbin_%s", machine().system().name); |