Added command-line option for triple buffering.

This commit is contained in:
stainless
2001-09-13 01:10:36 +00:00
parent 363920e57a
commit b14592f49e
2 changed files with 17 additions and 5 deletions

View File

@@ -37,7 +37,8 @@ extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
debugger, enterpress, finterleave, frameskip,
gammalevel, guioff, per2exec, pl1contrl, pl2contrl,
romtype, scanlines, showallext, smallscreenon, soundon,
spcon, vsyncon, DisplayS, fname, filefound, SnowOn;
spcon, vsyncon, DisplayS, fname, filefound, SnowOn,
Triplebufen;
void ccmdline(void);
@@ -123,7 +124,7 @@ int pccmdline(void)
printf("(%i/%i): %s\n",p,argc,argv[p]);
*/
if(argv[p][0] == '-')
if((argv[p][0] == '-') || (argv[p][0] == '/'))
{
int hasroom=0;
int pp=1;
@@ -153,7 +154,14 @@ int pccmdline(void)
ConvertJoyMap2();
break;
}
case 'f':
case '3':
{
vsyncon=0;
Triplebufen=1;
p++;
break;
}
case 'f':
{
if(!hasroom) return 4;
frameskip=my_atoi(argv[p+1]);
@@ -294,6 +302,7 @@ int pccmdline(void)
}
case 'w':
{
Triplebufen=0;
vsyncon=1;
break;
}

View File

@@ -1463,10 +1463,13 @@ SECTION .data
db ' 12 = 512x384x16B (VESA2) 13 = 640x480x8B (VESA2)',13,10
db ' 14 = 640x480x16B (VESA2)',13,10
%endif
db ' -w Enable VSync',13,10
db ' -w Enable VSync (disables Triple Buffering)',13,10
db 'Press any key to continue.',0
.noparms3 db 13,' -y Enable EAGLE (640x480x8B only) or Interpolation (640x480x16B only)',13,10
.noparms3 db 13,' -y Enable EAGLE (640x480x8B only) or Interpolation (640x480x16B only)',13,10
db ' -z Enable Stereo Sound',13,10
%ifdef __MSDOS__
db ' -3 Enable Triple Buffering (disables VSync)',13,10
%endif
db '',13,10
db ' File Formats Supported by GUI : .SMC,.SFC,.SWC,.FIG,.058,.078,.1,.USA,.JAP',13,10
db '',13,10,0