X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dvd.hpp;fp=dvd.hpp;h=db0f9835a7472a6a1fd896003958e4a64f0d2daa;hb=b463276d863f86a4268b5cac63fc6879ad6517bc;hp=9811fa3d89c99f973b9c8ff3b0ac7645c6b3f69b;hpb=856f9bfe9778a88ff359436c64c3e104fe5f56dc;p=videolink.git diff --git a/dvd.hpp b/dvd.hpp index 9811fa3..db0f983 100644 --- a/dvd.hpp +++ b/dvd.hpp @@ -4,18 +4,27 @@ namespace dvd { // Maximum number of buttons in a menu. - const int menu_buttons_max = 36; + const unsigned menu_buttons_max = 36; // Number of colours allowed in each button. // Buttons can change colour when they are selected. - const int button_n_colours = 4; + const unsigned button_n_colours = 4; // DVD virtual machine register size. - const int reg_bits = 16; + const unsigned reg_bits = 16; // Number by which button numbers must be multiplied when stored in // system register 8. - const int reg_s8_button_mult = 0x400; + const unsigned reg_s8_button_mult = 0x400; + + // Maximum number of PGCs in a domain that can be linked to. + // dvdauthor uses some menu numbers for special purposes, + // resulting in a practical limit of 119 per domain. + const unsigned domain_pgcs_max = 119; + + // Maximum number of titles on a disc. (Also the maximum number of + // titlesets per disc.) + const unsigned titles_max = 99; } #endif // !INC_DVD_HPP