{
static const option long_options[] = {
{ "num-cards", required_argument, 0, 'c' },
+ { "theme", required_argument, 0, 't' },
{ "va-display", required_argument, 0, 1000 },
{ "http-uncompressed-video", no_argument, 0, 1001 },
{ 0, 0, 0, 0 }
};
for ( ;; ) {
int option_index = 0;
- int c = getopt_long(argc, argv, "c:", long_options, &option_index);
+ int c = getopt_long(argc, argv, "c:t:", long_options, &option_index);
if (c == -1) {
break;
case 'c':
global_flags.num_cards = atoi(optarg);
break;
+ case 't':
+ global_flags.theme_filename = optarg;
+ break;
case 1000:
global_flags.va_display = optarg;
break;
int num_cards = 2;
std::string va_display;
bool uncompressed_video_to_http = false;
+ std::string theme_filename = "theme.lua";
};
extern Flags global_flags;
movit_texel_subpixel_precision /= 2.0;
resource_pool.reset(new ResourcePool);
- theme.reset(new Theme("theme.lua", resource_pool.get(), num_cards));
+ theme.reset(new Theme(global_flags.theme_filename.c_str(), resource_pool.get(), num_cards));
for (unsigned i = 0; i < NUM_OUTPUTS; ++i) {
output_channel[i].parent = this;
}