src/osd/winui/picker.c
| r7831 | r7832 | |
| 927 | 927 | void Picker_Sort(HWND hwndPicker) |
| 928 | 928 | { |
| 929 | 929 | LV_FINDINFO lvfi; |
| 930 | | struct PickerInfo *pPickerInfo; |
| 930 | //struct PickerInfo *pPickerInfo; |
| 931 | 931 | struct CompareProcParams params; |
| 932 | 932 | int nItem; |
| 933 | 933 | BOOL res; |
| 934 | 934 | |
| 935 | | pPickerInfo = GetPickerInfo(hwndPicker); |
| 935 | //pPickerInfo = GetPickerInfo(hwndPicker); |
| 936 | 936 | |
| 937 | 937 | // populate the CompareProcParams structure |
| 938 | 938 | Picker_PopulateCompareProcParams(hwndPicker, ¶ms); |
| r7831 | r7832 | |
| 953 | 953 | |
| 954 | 954 | int Picker_InsertItemSorted(HWND hwndPicker, int nParam) |
| 955 | 955 | { |
| 956 | | struct PickerInfo *pPickerInfo; |
| 956 | //struct PickerInfo *pPickerInfo; |
| 957 | 957 | int nHigh, nLow, nMid; |
| 958 | 958 | struct CompareProcParams params; |
| 959 | 959 | int nCompareResult; |
| 960 | 960 | LVITEM lvi; |
| 961 | 961 | BOOL res; |
| 962 | 962 | |
| 963 | | pPickerInfo = GetPickerInfo(hwndPicker); |
| 963 | //pPickerInfo = GetPickerInfo(hwndPicker); |
| 964 | 964 | |
| 965 | 965 | nLow = 0; |
| 966 | 966 | nHigh = ListView_GetItemCount(hwndPicker); |
src/osd/winui/treeview.c
| r7831 | r7832 | |
| 1163 | 1163 | int nGames = driver_list_get_count(drivers); |
| 1164 | 1164 | LPTREEFOLDER lpFolder = treeFolders[parent_index]; |
| 1165 | 1165 | const rom_entry *region, *rom; |
| 1166 | | const char *name; |
| 1166 | //const char *name; |
| 1167 | 1167 | const game_driver *gamedrv; |
| 1168 | 1168 | machine_config *config; |
| 1169 | 1169 | |
| r7831 | r7832 | |
| 1216 | 1216 | { |
| 1217 | 1217 | if (ROMREGION_ISROMDATA(region) || ROMREGION_ISDISKDATA(region) ) |
| 1218 | 1218 | { |
| 1219 | | name = ROM_GETNAME(rom); |
| 1219 | //name = ROM_GETNAME(rom); |
| 1220 | 1220 | if (hash_data_has_info(ROM_GETHASHDATA(rom), HASH_INFO_BAD_DUMP)) |
| 1221 | 1221 | bBadDump = TRUE; |
| 1222 | 1222 | if (hash_data_has_info(ROM_GETHASHDATA(rom), HASH_INFO_NO_DUMP)) |
src/osd/winui/winui.c
| r7831 | r7832 | |
| 6300 | 6300 | int nGame = Picker_GetSelectedItem(hwndList); |
| 6301 | 6301 | LPTREEFOLDER lpFolder = GetCurrentFolder(); |
| 6302 | 6302 | int i; |
| 6303 | | const char *pParent; |
| 6303 | //const char *pParent; |
| 6304 | 6304 | TCHAR* t_description; |
| 6305 | 6305 | |
| 6306 | 6306 | if (have_selection) |
| r7831 | r7832 | |
| 6348 | 6348 | EnableMenuItem(hMenu,ID_CONTEXT_REMOVE_CUSTOM,MF_GRAYED); |
| 6349 | 6349 | EnableMenuItem(hMenu,ID_CONTEXT_RENAME_CUSTOM,MF_GRAYED); |
| 6350 | 6350 | } |
| 6351 | | pParent = GetFolderNameByID(lpFolder->m_nParent+1); |
| 6351 | //pParent = GetFolderNameByID(lpFolder->m_nParent+1); |
| 6352 | 6352 | |
| 6353 | 6353 | if (lpFolder->m_dwFlags & F_INIEDIT) |
| 6354 | 6354 | EnableMenuItem(hMenu,ID_FOLDER_PROPERTIES,MF_ENABLED); |
src/mess/devices/ti99cart.c
| r7831 | r7832 | |
| 623 | 623 | */ |
| 624 | 624 | static int assemble_std(running_device *image) |
| 625 | 625 | { |
| 626 | | cartridge_t *cart; |
| 626 | // cartridge_t *cart; |
| 627 | 627 | // printf("assemble_std, %s\n", image->tag); |
| 628 | | cart = assemble_common(image); |
| 628 | /*cart = */assemble_common(image); |
| 629 | 629 | |
| 630 | 630 | return INIT_PASS; |
| 631 | 631 | } |
| r7831 | r7832 | |
| 1295 | 1295 | |
| 1296 | 1296 | static int assemble_mbx(running_device *image) |
| 1297 | 1297 | { |
| 1298 | | cartridge_t *cart; |
| 1298 | // cartridge_t *cart; |
| 1299 | 1299 | |
| 1300 | 1300 | // printf("assemble_mbx, %s\n", image->tag); |
| 1301 | | cart = assemble_common(image); |
| 1301 | /*cart = */assemble_common(image); |
| 1302 | 1302 | return INIT_PASS; |
| 1303 | 1303 | } |
| 1304 | 1304 | |
src/mess/devices/aescart.c
| r7831 | r7832 | |
| 258 | 258 | */ |
| 259 | 259 | static int assemble_std(running_machine *machine, running_device *image) |
| 260 | 260 | { |
| 261 | | aescartridge_t *cart; |
| 261 | // aescartridge_t *cart; |
| 262 | 262 | // printf("assemble_std, %s\n", image->tag); |
| 263 | | cart = assemble_common(machine, image); |
| 263 | /*cart = */assemble_common(machine, image); |
| 264 | 264 | |
| 265 | 265 | return INIT_PASS; |
| 266 | 266 | } |
| r7831 | r7832 | |
| 274 | 274 | */ |
| 275 | 275 | static int disassemble_std(running_device *image) |
| 276 | 276 | { |
| 277 | | int slotnumber; |
| 277 | // int slotnumber; |
| 278 | 278 | // int i; |
| 279 | | aescartridge_t *cart; |
| 280 | | running_device *cartsys = image->owner; |
| 281 | | aes_multicart_t *cartslots = (aes_multicart_t *)cartsys->token; |
| 279 | // aescartridge_t *cart; |
| 280 | // running_device *cartsys = image->owner; |
| 281 | // aes_multicart_t *cartslots = (aes_multicart_t *)cartsys->token; |
| 282 | 282 | |
| 283 | | slotnumber = get_index_from_tagname(image)-1; |
| 283 | // slotnumber = get_index_from_tagname(image)-1; |
| 284 | 284 | // printf("Disassemble cartridge %d\n", slotnumber); |
| 285 | 285 | #if 0 |
| 286 | 286 | /* Search the highest remaining cartridge. */ |
| r7831 | r7832 | |
| 299 | 299 | } |
| 300 | 300 | #endif |
| 301 | 301 | /* Do we have RAM? If so, swap the bytes (undo the BIG_ENDIANIZE) */ |
| 302 | | cart = &cartslots->cartridge[slotnumber]; |
| 302 | // cart = &cartslots->cartridge[slotnumber]; |
| 303 | 303 | |
| 304 | 304 | // clear_slot(cartsys, slotnumber); |
| 305 | 305 | |
src/mess/tools/messtest/core.c
| r7831 | r7832 | |
| 495 | 495 | |
| 496 | 496 | int messtest(const struct messtest_options *opts, int *test_count, int *failure_count) |
| 497 | 497 | { |
| 498 | | char saved_directory[1024]; |
| 498 | //char saved_directory[1024]; |
| 499 | 499 | file_error filerr; |
| 500 | 500 | core_file *file; |
| 501 | 501 | int result = -1; |
| r7831 | r7832 | |
| 517 | 517 | } |
| 518 | 518 | |
| 519 | 519 | /* save the current working directory, and change to the test directory */ |
| 520 | | saved_directory[0] = '\0'; |
| 520 | //saved_directory[0] = '\0'; |
| 521 | 521 | /* if (!opts->preserve_directory) |
| 522 | 522 | { |
| 523 | 523 | script_directory = osd_dirname(opts->script_filename); |
src/mess/tools/imgtool/windows/wimgtool.c
| r7831 | r7832 | |
| 1190 | 1190 | object_pool *pool; |
| 1191 | 1191 | win_open_file_name ofn; |
| 1192 | 1192 | const imgtool_module *module; |
| 1193 | | wimgtool_info *info; |
| 1193 | //wimgtool_info *info; |
| 1194 | 1194 | int read_or_write; |
| 1195 | 1195 | |
| 1196 | 1196 | pool = pool_alloc_lib(NULL); |
| r7831 | r7832 | |
| 1200 | 1200 | goto done; |
| 1201 | 1201 | } |
| 1202 | 1202 | |
| 1203 | | info = get_wimgtool_info(window); |
| 1203 | //info = get_wimgtool_info(window); |
| 1204 | 1204 | |
| 1205 | 1205 | err = setup_openfilename_struct(&ofn, pool, window, FALSE); |
| 1206 | 1206 | if (err) |
| r7831 | r7832 | |
| 1241 | 1241 | wimgtool_info *info; |
| 1242 | 1242 | option_resolution *opts = NULL; |
| 1243 | 1243 | BOOL cancel; |
| 1244 | | const imgtool_module *module; |
| 1244 | //const imgtool_module *module; |
| 1245 | 1245 | const char *fork = NULL; |
| 1246 | 1246 | struct transfer_suggestion_info suggestion_info; |
| 1247 | 1247 | int use_suggestion_info; |
| r7831 | r7832 | |
| 1270 | 1270 | goto done; |
| 1271 | 1271 | } |
| 1272 | 1272 | |
| 1273 | | module = imgtool_image_module(info->image); |
| 1273 | //module = imgtool_image_module(info->image); |
| 1274 | 1274 | |
| 1275 | 1275 | /* figure out which filters are appropriate for this file */ |
| 1276 | 1276 | imgtool_partition_suggest_file_filters(info->partition, NULL, stream, suggestion_info.suggestions, |
src/mess/tools/imgtool/modules/os9.c
| r7831 | r7832 | |
| 1098 | 1098 | { |
| 1099 | 1099 | imgtoolerr_t err; |
| 1100 | 1100 | imgtool_image *image = imgtool_partition_image(partition); |
| 1101 | | const os9_diskinfo *disk_info; |
| 1101 | //const os9_diskinfo *disk_info; |
| 1102 | 1102 | struct os9_fileinfo file_info; |
| 1103 | 1103 | UINT32 dirent_lsn, dirent_index; |
| 1104 | 1104 | UINT32 entry_lsn, entry_index; |
| 1105 | 1105 | UINT32 i, j, lsn; |
| 1106 | 1106 | UINT8 b; |
| 1107 | 1107 | |
| 1108 | | disk_info = os9_get_diskinfo(image); |
| 1108 | //disk_info = os9_get_diskinfo(image); |
| 1109 | 1109 | |
| 1110 | 1110 | err = os9_lookup_path(image, path, CREATE_NONE, &file_info, NULL, &dirent_lsn, &dirent_index); |
| 1111 | 1111 | if (err) |
src/mess/tools/imgtool/modules/fat.c
| r7831 | r7832 | |
| 289 | 289 | static imgtoolerr_t fat_read_sector(imgtool_partition *partition, UINT32 sector_index, |
| 290 | 290 | int offset, void *buffer, size_t buffer_len) |
| 291 | 291 | { |
| 292 | | const fat_partition_info *disk_info; |
| 292 | //const fat_partition_info *disk_info; |
| 293 | 293 | imgtoolerr_t err; |
| 294 | 294 | UINT8 data[FAT_SECLEN]; |
| 295 | 295 | UINT32 block_size; |
| 296 | 296 | size_t len; |
| 297 | 297 | |
| 298 | | disk_info = fat_get_partition_info(partition); |
| 298 | //disk_info = fat_get_partition_info(partition); |
| 299 | 299 | |
| 300 | 300 | /* sanity check */ |
| 301 | 301 | err = imgtool_partition_get_block_size(partition, &block_size); |
| r7831 | r7832 | |
| 324 | 324 | static imgtoolerr_t fat_write_sector(imgtool_partition *partition, UINT32 sector_index, |
| 325 | 325 | int offset, const void *buffer, size_t buffer_len) |
| 326 | 326 | { |
| 327 | | const fat_partition_info *disk_info; |
| 327 | //const fat_partition_info *disk_info; |
| 328 | 328 | imgtoolerr_t err; |
| 329 | 329 | UINT8 data[FAT_SECLEN]; |
| 330 | 330 | const void *write_data; |
| 331 | 331 | UINT32 block_size; |
| 332 | 332 | size_t len; |
| 333 | 333 | |
| 334 | | disk_info = fat_get_partition_info(partition); |
| 334 | //disk_info = fat_get_partition_info(partition); |
| 335 | 335 | |
| 336 | 336 | /* sanity check */ |
| 337 | 337 | err = imgtool_partition_get_block_size(partition, &block_size); |
| r7831 | r7832 | |
| 461 | 461 | UINT32 boot_sector_offset; |
| 462 | 462 | UINT64 total_clusters; |
| 463 | 463 | UINT8 media_descriptor; |
| 464 | | const char *title; |
| 464 | //const char *title; |
| 465 | 465 | const char *fat_bits_string; |
| 466 | 466 | UINT8 header[FAT_SECLEN]; |
| 467 | 467 | UINT64 first_fat_entries; |
| r7831 | r7832 | |
| 506 | 506 | media_descriptor = known_media[i].media_descriptor; |
| 507 | 507 | |
| 508 | 508 | /* other miscellaneous settings */ |
| 509 | | title = ""; |
| 509 | //title = ""; |
| 510 | 510 | fat_count = 2; |
| 511 | 511 | root_dir_count = 512; |
| 512 | 512 | hidden_sectors = 0; |
| r7831 | r7832 | |
| 1279 | 1279 | fat_dirent *ent, fat_freeentry_info *freeent) |
| 1280 | 1280 | { |
| 1281 | 1281 | imgtoolerr_t err; |
| 1282 | | const fat_partition_info *disk_info; |
| 1282 | //const fat_partition_info *disk_info; |
| 1283 | 1283 | UINT8 entry[FAT_DIRENT_SIZE]; |
| 1284 | 1284 | size_t bytes_read; |
| 1285 | 1285 | int i, j; |
| r7831 | r7832 | |
| 1293 | 1293 | assert(file->directory); |
| 1294 | 1294 | lfn_buf[0] = '\0'; |
| 1295 | 1295 | memset(ent, 0, sizeof(*ent)); |
| 1296 | | disk_info = fat_get_partition_info(partition); |
| 1296 | //disk_info = fat_get_partition_info(partition); |
| 1297 | 1297 | |
| 1298 | 1298 | /* The first eight bytes of a FAT directory entry is a blank padded name |
| 1299 | 1299 | * |
src/mess/video/vic4567.c
| r7831 | r7832 | |
| 564 | 564 | { |
| 565 | 565 | vic3_state *vic3 = get_safe_token(device); |
| 566 | 566 | int y, i, prior, addr, xbegin, collision; |
| 567 | | int value, value2, value3 = 0, bg, color[2]; |
| 567 | int value, value2, value3 = 0, bg/*, color[2]*/; |
| 568 | 568 | |
| 569 | 569 | xbegin = SPRITE_X_POS(nr); |
| 570 | 570 | addr = vic3->dma_read(device->machine, SPRITE_ADDR(nr)) << 6; |
| 571 | 571 | vic3->spritemulti[2] = SPRITE_COLOR(nr); |
| 572 | 572 | prior = SPRITE_PRIORITY(nr); |
| 573 | 573 | collision = SPRITE_BG_COLLISION(nr); |
| 574 | | color[0] = 0; |
| 575 | | color[1] = 1; |
| 574 | //color[0] = 0; |
| 575 | //color[1] = 1; |
| 576 | 576 | |
| 577 | 577 | if (SPRITE_X_EXPAND(nr)) |
| 578 | 578 | { |
src/mess/video/odyssey2.c
| r7831 | r7832 | |
| 310 | 310 | if ( vpos < start_vblank ) |
| 311 | 311 | { |
| 312 | 312 | rectangle rect; |
| 313 | | int sprite_width[4] = { 8, 8, 8, 8 }; |
| 313 | //int sprite_width[4] = { 8, 8, 8, 8 }; |
| 314 | 314 | int i; |
| 315 | 315 | |
| 316 | 316 | control_status &= ~ 0x01; |
| r7831 | r7832 | |
| 486 | 486 | if ( o2_vdc.s.sprites[i].color & 4 ) |
| 487 | 487 | { |
| 488 | 488 | /* Zoomed sprite */ |
| 489 | | sprite_width[i] = 16; |
| 489 | //sprite_width[i] = 16; |
| 490 | 490 | if ( y <= ( vpos - start_vpos ) && ( vpos - start_vpos ) < y + height * 4 ) |
| 491 | 491 | { |
| 492 | 492 | UINT16 color = 16 + ( ( o2_vdc.s.sprites[i].color >> 3 ) & 0x07 ); |
src/mess/video/kc.c
| r7831 | r7832 | |
| 561 | 561 | #ifdef UNUSED_FUNCTION |
| 562 | 562 | static void kc85_common_vh_eof_callback(void) |
| 563 | 563 | { |
| 564 | | EVENT_LIST_ITEM *pItem; |
| 564 | //EVENT_LIST_ITEM *pItem; |
| 565 | 565 | int NumItems; |
| 566 | 566 | |
| 567 | 567 | /* Empty event buffer */ |
| r7831 | r7832 | |
| 570 | 570 | /* to do: the entries in this buffer are ignored. OK? */ |
| 571 | 571 | if (NumItems) |
| 572 | 572 | { |
| 573 | | pItem = EventList_GetFirstItem(); |
| 573 | //pItem = EventList_GetFirstItem(); |
| 574 | 574 | EventList_Reset(); |
| 575 | 575 | EventList_SetOffsetStartTime ( cpu_attotime_to_clocks(machine->firstcpu, attotime_mul(video_screen_get_scan_period(machine->primary_screen), video_screen_get_vpos(machine->primary_screen))) ); |
| 576 | 576 | logerror ("Event log reset in callback fn.\n"); |