Added command-line option for triple buffering.
This commit is contained in:
@@ -37,7 +37,8 @@ extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
|
|||||||
debugger, enterpress, finterleave, frameskip,
|
debugger, enterpress, finterleave, frameskip,
|
||||||
gammalevel, guioff, per2exec, pl1contrl, pl2contrl,
|
gammalevel, guioff, per2exec, pl1contrl, pl2contrl,
|
||||||
romtype, scanlines, showallext, smallscreenon, soundon,
|
romtype, scanlines, showallext, smallscreenon, soundon,
|
||||||
spcon, vsyncon, DisplayS, fname, filefound, SnowOn;
|
spcon, vsyncon, DisplayS, fname, filefound, SnowOn,
|
||||||
|
Triplebufen;
|
||||||
|
|
||||||
void ccmdline(void);
|
void ccmdline(void);
|
||||||
|
|
||||||
@@ -123,7 +124,7 @@ int pccmdline(void)
|
|||||||
printf("(%i/%i): %s\n",p,argc,argv[p]);
|
printf("(%i/%i): %s\n",p,argc,argv[p]);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(argv[p][0] == '-')
|
if((argv[p][0] == '-') || (argv[p][0] == '/'))
|
||||||
{
|
{
|
||||||
int hasroom=0;
|
int hasroom=0;
|
||||||
int pp=1;
|
int pp=1;
|
||||||
@@ -153,7 +154,14 @@ int pccmdline(void)
|
|||||||
ConvertJoyMap2();
|
ConvertJoyMap2();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'f':
|
case '3':
|
||||||
|
{
|
||||||
|
vsyncon=0;
|
||||||
|
Triplebufen=1;
|
||||||
|
p++;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 'f':
|
||||||
{
|
{
|
||||||
if(!hasroom) return 4;
|
if(!hasroom) return 4;
|
||||||
frameskip=my_atoi(argv[p+1]);
|
frameskip=my_atoi(argv[p+1]);
|
||||||
@@ -294,6 +302,7 @@ int pccmdline(void)
|
|||||||
}
|
}
|
||||||
case 'w':
|
case 'w':
|
||||||
{
|
{
|
||||||
|
Triplebufen=0;
|
||||||
vsyncon=1;
|
vsyncon=1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1463,10 +1463,13 @@ SECTION .data
|
|||||||
db ' 12 = 512x384x16B (VESA2) 13 = 640x480x8B (VESA2)',13,10
|
db ' 12 = 512x384x16B (VESA2) 13 = 640x480x8B (VESA2)',13,10
|
||||||
db ' 14 = 640x480x16B (VESA2)',13,10
|
db ' 14 = 640x480x16B (VESA2)',13,10
|
||||||
%endif
|
%endif
|
||||||
db ' -w Enable VSync',13,10
|
db ' -w Enable VSync (disables Triple Buffering)',13,10
|
||||||
db 'Press any key to continue.',0
|
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
|
db ' -z Enable Stereo Sound',13,10
|
||||||
|
%ifdef __MSDOS__
|
||||||
|
db ' -3 Enable Triple Buffering (disables VSync)',13,10
|
||||||
|
%endif
|
||||||
db '',13,10
|
db '',13,10
|
||||||
db ' File Formats Supported by GUI : .SMC,.SFC,.SWC,.FIG,.058,.078,.1,.USA,.JAP',13,10
|
db ' File Formats Supported by GUI : .SMC,.SFC,.SWC,.FIG,.058,.078,.1,.USA,.JAP',13,10
|
||||||
db '',13,10,0
|
db '',13,10,0
|
||||||
|
|||||||
Reference in New Issue
Block a user