]> git.decadent.org.uk Git - videolink.git/blobdiff - generate_dvd.cpp
Changed to ensure menus are displayed indefinitely.
[videolink.git] / 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 <<