Hello,
I just wanted to share how I solved the problem of making POV-Ray work in
command line mode in windows.
I added another windows command line switch "/CMDMODE" by adding a boolean
variable "command_line_mode" and the following code in pvtext.cpp:
if (stricmp (commandstr, "CMDMODE") == 0)
{
command_line_mode = true ;
while (*s == ' ')
s++ ;
continue ;
}
In pvengine.cpp I added the following piece of code after the "switch
(placement.showCmd)" part:
placement.showCmd = show_state ;
if (command_line_mode) {
placement.showCmd = SW_HIDE;
}
I also removed the splash screen completely but you can test for
command_line_mode there as well I guess.
Post a reply to this message
|