Sunday, September 04, 2005

Generate a generic cue from a bin

Downloaded sim city 4 last night, and some joker didnt include the .cues. for those of you who dont know, mounting isos in linux is a breeze (mount -t iso9660 -o loop ). mounting a cue/bin is something resembling hell, usually involving some flakey daemon tools clone that will take down your system half way through an install. so what most linux people do is convert cue/bins to isos using bchunk. bchunk however, demands a cue, even though its not too hard to have a "generic" cue that has no chapters or anything. since ive gone searching for what to stick in it every time i run accross this problem, i just did a small script to generate it for me.


#!/usr/bin/perl

$name = $ARGV[0];
$name =~ s/\.bin$/\.cue/i;

`echo \"FILE \\"$ARGV[0]\\" BINARY\nTRACK 01 MODE1/2352\nINDEX 01 00\:00\:00\" > $name`;

0 Comments:

Post a Comment

<< Home