273
273
msg.AddInt32("device", *(int*)fileparam);
274
274
cb_readonly->SetMessage(&msg);
275
resources_get_sprintf("AttachDevice%dReadonly",
276
(resource_value_t *)&n, *(int*)fileparam);
275
resources_get_int_sprintf("AttachDevice%dReadonly",
276
&n, *(int*)fileparam);
277
277
cb_readonly->SetValue(n);
278
278
filepanel->Window()->Unlock();
300
300
sprintf(title,"Select start snapshot");
301
301
if (filetype == SNAPSHOT_HISTORY_END)
302
302
sprintf(title,"Select end snapshot");
303
if (filetype == REU_FILE)
304
sprintf(title,"Select REU file");
305
if (filetype == GEORAM_FILE)
306
sprintf(title,"Select GEORAM file");
307
if (filetype == RAMCART_FILE)
308
sprintf(title,"Select RAMCART file");
309
if (filetype == PLUS60K_FILE)
310
sprintf(title,"Select +60K file");
311
if (filetype == PLUS256K_FILE)
312
sprintf(title,"Select +256K file");
313
if (filetype == C64_256K_FILE)
314
sprintf(title,"Select C64_256K file");
315
if (filetype == PETREU_FILE)
316
sprintf(title,"Select PET REU file");
317
if (filetype == MMC64_BIOS_FILE)
318
sprintf(title,"Select MMC64 BIOS file");
319
if (filetype == MMC64_IMAGE_FILE)
320
sprintf(title,"Select MMC64 image file");
321
if (filetype == AIFF_FILE)
322
sprintf(title,"Select AIFF Sound Recording file");
323
if (filetype == IFF_FILE)
324
sprintf(title,"Select IFF Sound Recording file");
326
if (filetype == MP3_FILE)
327
sprintf(title,"Select MP3 Sound Recording file");
329
if (filetype == VOC_FILE)
330
sprintf(title,"Select VOC Sound Recording file");
331
if (filetype == WAV_FILE)
332
sprintf(title,"Select WAV Sound Recording file");
304
334
filepanel->Window()->SetTitle(title);
354
384
BMessage *msg = new BMessage(PLAY_VSID);
355
385
msg->AddString("filename", path->Path());
356
386
ui_add_event(msg);
387
} else if (last_filetype[0] == MMC64_BIOS_FILE) {
388
resources_set_string("MMC64BIOSfilename", path->Path());
389
} else if (last_filetype[0] == MMC64_IMAGE_FILE) {
390
resources_set_string("MMC64imagefilename", path->Path());
380
414
if (machine_write_snapshot(fullpath, 1, 1, 0) < 0)
381
415
ui_error("Cannot write snapshot file.");
382
416
} else if (last_filetype[1] == SNAPSHOT_HISTORY_START) {
383
resources_set_value("EventStartSnapshot", (void *)name);
417
resources_set_string("EventStartSnapshot", name);
384
418
} else if (last_filetype[1] == SNAPSHOT_HISTORY_END) {
385
resources_set_value("EventEndSnapshot", (void *)name);
386
resources_set_value("EventSnapshotDir", (void *)path->Path());
419
resources_set_string("EventEndSnapshot", name);
420
resources_set_string("EventSnapshotDir", path->Path());
421
} else if (last_filetype[1] == REU_FILE) {
422
resources_set_string("REUfilename", name);
423
} else if (last_filetype[1] == GEORAM_FILE) {
424
resources_set_string("GEORAMfilename", name);
425
} else if (last_filetype[1] == RAMCART_FILE) {
426
resources_set_string("RAMCARTfilename", name);
427
} else if (last_filetype[1] == PLUS60K_FILE) {
428
resources_set_string("PLUS60Kfilename", name);
429
} else if (last_filetype[1] == PLUS256K_FILE) {
430
resources_set_string("PLUS256Kfilename", name);
431
} else if (last_filetype[1] == C64_256K_FILE) {
432
resources_set_string("C64_256Kfilename", name);
433
} else if (last_filetype[1] == PETREU_FILE) {
434
resources_set_string("PETREUfilename", name);
435
} else if (last_filetype[1] == AIFF_FILE) {
436
util_add_extension_const(name, "aiff");
437
resources_set_string("SoundRecordDeviceArg", name);
438
} else if (last_filetype[1] == IFF_FILE) {
439
util_add_extension_const(name, "iff");
440
resources_set_string("SoundRecordDeviceArg", name);
442
} else if (last_filetype[1] == MP3_FILE) {
443
util_add_extension_const(name, "mp3");
444
resources_set_string("SoundRecordDeviceArg", name);
446
} else if (last_filetype[1] == VOC_FILE) {
447
util_add_extension_const(name, "voc");
448
resources_set_string("SoundRecordDeviceArg", name);
449
} else if (last_filetype[1] == WAV_FILE) {
450
util_add_extension_const(name, "wav");
451
resources_set_string("SoundRecordDeviceArg", name);