#16 -avidemo perticks shotname

open
nobody
None
1
2002-09-23
2002-09-11
No

How about addition cmd option -avidemo? (like quake3)

For example:
glboom.exe -width 320 -height 200 -nofullscreen -
timedemo LV01-005.LMP -autoshot 1 shot

Approximately so:

src\d_main.c
...
// e6y avidemo screenshots
static int avidemo_count, avidemo_time;
static const char *avidemo_fname_mask;
static unsigned int avidemo_num = 0;
char avidemo_fname[_MAX_PATH + 1];
...
static void D_DoomLoop(void)
...
// e6y - avidemo screenshots
if (avidemo_fname_mask && !--avidemo_count) {
avidemo_count = avidemo_time;
sprintf(avidemo_fname,"%s%.6i.bmp",
avidemo_fname_mask, avidemo_num++);
M_DoScreenShot(avidemo_fname);
}
...
void D_DoomMainSetup(void)
...
// e6y - avidemo screenshots
if ((p = M_CheckParm("-avidemo")) && (p < myargc-2))
if ((avidemo_count = avidemo_time = atoi(myargv
[p+1])))
avidemo_fname_mask = myargv[p+2];

Discussion

  • Colin Phipps

    Colin Phipps - 2002-09-23

    Logged In: YES
    user_id=18428

     
  • Colin Phipps

    Colin Phipps - 2002-09-23
    • labels: 103843 -->
    • priority: 5 --> 1
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks