X-Git-Url: https://git.decadent.org.uk/gitweb/?p=videolink.git;a=blobdiff_plain;f=generate_dvd.cpp;h=9f15d2f96a903e3d8dd73d74cadeb2788bcef142;hp=eeadc489bc1b75a92bae82a1dbc8cb3c2074f8ec;hb=c5f98ff303d670f72a5d491a5f4e1989d2043219;hpb=c13714f6498df33e02635421354f5fb88a60eb3d diff --git a/generate_dvd.cpp b/generate_dvd.cpp index eeadc48..9f15d2f 100644 --- a/generate_dvd.cpp +++ b/generate_dvd.cpp @@ -1,4 +1,4 @@ -// Copyright 2005-6 Ben Hutchings . +// Copyright 2005-6 Ben Hutchings . // See the file "COPYING" for licence details. #include @@ -55,7 +55,7 @@ void generate_dvd(const dvd_contents & contents, // This is the first (title) menu, displayed when the // disc is first played. file << - " \n" + " \n" "
\n"
 		// Initialise the current location if it is not set
 		// (all general registers are initially 0).
@@ -65,7 +65,7 @@ void generate_dvd(const dvd_contents & contents,
 	else
 	{
 	    file <<
-		"      \n"
+		"      \n"
 		"        
\n";
 	}
 
@@ -160,15 +160,23 @@ void generate_dvd(const dvd_contents & contents,
 		     << 1 + menu_num + (1 + button_num) * button_mult
 		     << "; jump title "
 		     << 1 + target.index;
-		if (target.sub_index)
-		    file << " chapter " << target.sub_index;
+		// FIXME: Here we should check target.sub_index and
+		// jump to a specific chapter if it is non-zero.
+		// However, we can't jump directly to chapters from
+		// the VMGM.
 		file << ";";
 	    }
 
 	    file <<  " \n";
 	}
 
-	file << "      \n";
+	file <<
+	    // Some DVD players don't seem to obey pause='inf' so make
+	    // them loop.
+	    "        \n"
+	    "          jump cell 1;\n"
+	    "        \n"
+	    "      \n";
     }
 
     file <<