-// Copyright 2005-6 Ben Hutchings <ben@decadentplace.org.uk>.
+// Copyright 2005-6 Ben Hutchings <ben@decadent.org.uk>.
// See the file "COPYING" for licence details.
#include <fstream>
// 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).
else
{
file <<
- " <pgc>\n"
+ " <pgc pause='inf'>\n"
" <pre>\n";
}
<< 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 << " </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 <<