#include "dvd.hpp"
#include "generate_dvd.hpp"
+#include "xml_utils.hpp"
dvd_contents::menu::menu()
: vob_temp(new temp_file("webdvd-vob-"))
" <titles>\n"
" <pgc>\n"
// Record calling location.
- " <pre> g12 = g1; </pre>\n"
- << contents.titles[title_num].vob_list <<
+ " <pre> g12 = g1; </pre>\n";
+
+ for (vob_list::const_iterator it = contents.titles[title_num].begin(),
+ end = contents.titles[title_num].end();
+ it != end;
+ ++it)
+ {
+ file << " <vob file='" << xml_escape(it->file) << "'";
+ if (!it->chapters.empty())
+ file << " chapters='" << xml_escape(it->chapters) << "'";
+ if (!it->pause.empty())
+ file << " pause='" << xml_escape(it->pause) << "'";
+ file << "/>\n";
+ }
+
+ file <<
// If the menu location has not been changed during
// the title, set the location to be the following
// button in the menu. In any case, return to some