]> git.decadent.org.uk Git - videolink.git/commitdiff
Changed to ensure menus are displayed indefinitely.
authorBen Hutchings <ben@decadent.org.uk>
Sun, 11 Jun 2006 19:16:18 +0000 (19:16 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 2 Nov 2008 23:40:00 +0000 (23:40 +0000)
generate_dvd.cpp

index 5e129d4235b794fb0d68f54440f68c1976b59909..36b1e3a4e3184292aa011b548a22449b7e3c9913 100644 (file)
@@ -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 <<
-               "      <pgc entry='title'>\n"
+               "      <pgc entry='title' pause='inf'>\n"
                "        <pre>\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 <<
-               "      <pgc>\n"
+               "      <pgc pause='inf'>\n"
                "        <pre>\n";
        }
 
@@ -170,7 +170,13 @@ void generate_dvd(const dvd_contents & contents,
            file <<  " </button>\n";
        }
 
-       file << "      </pgc>\n";
+       file <<
+           // Some DVD players don't seem to obey pause='inf' so make
+           // them loop.
+           "        <post>\n"
+           "          jump cell 1;\n"
+           "        </post>\n"
+           "      </pgc>\n";
     }
 
     file <<