Added parameter to close ZSNES when movie is closed.
This commit is contained in:
@@ -1286,6 +1286,7 @@ NEWSYM nmistatus, dd 0 ; 0 = none, 1 = waiting for nmi location,
|
|||||||
; 2 = found, disable at next line
|
; 2 = found, disable at next line
|
||||||
NEWSYM joycontren, dd 0 ; joystick read control check
|
NEWSYM joycontren, dd 0 ; joystick read control check
|
||||||
NEWSYM NextLineCache, db 0
|
NEWSYM NextLineCache, db 0
|
||||||
|
NEWSYM ZMVZClose, db 0
|
||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
@@ -2740,6 +2741,12 @@ NEWSYM cpuover
|
|||||||
pushad
|
pushad
|
||||||
call ProcessMovies
|
call ProcessMovies
|
||||||
popad
|
popad
|
||||||
|
cmp byte[MovieProcessing],0
|
||||||
|
jne .notmoviedone
|
||||||
|
cmp byte[ZMVZClose],1
|
||||||
|
jne .notmoviedone
|
||||||
|
jmp OSExit
|
||||||
|
.notmoviedone
|
||||||
cmp byte[MovieExitLoop],1
|
cmp byte[MovieExitLoop],1
|
||||||
jne .noprocmovie
|
jne .noprocmovie
|
||||||
mov byte[MovieProcessing],0
|
mov byte[MovieProcessing],0
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ extern unsigned char Palette0, pl1contrl, pl2contrl, MMXSupport, Force8b, ForceP
|
|||||||
antienab, cvidmode, debugdisble, debugger, enterpress, vsyncon, DisplayS,
|
antienab, cvidmode, debugdisble, debugger, enterpress, vsyncon, DisplayS,
|
||||||
fname, SnowOn, Triplebufen, SPC700sh, OffBy1Line, DSPDisable, frameskip,
|
fname, SnowOn, Triplebufen, SPC700sh, OffBy1Line, DSPDisable, frameskip,
|
||||||
gammalevel, guioff, romtype, per2exec, scanlines, soundon, spcon,
|
gammalevel, guioff, romtype, per2exec, scanlines, soundon, spcon,
|
||||||
showallext, autoloadstate, smallscreenon, autoloadmovie;
|
showallext, autoloadstate, smallscreenon, autoloadmovie, ZMVZClose;
|
||||||
|
|
||||||
void ConvertJoyMap1(), ConvertJoyMap2(), zstart(), makeextension();
|
void ConvertJoyMap1(), ConvertJoyMap2(), zstart(), makeextension();
|
||||||
|
|
||||||
@@ -95,6 +95,7 @@ static void display_help()
|
|||||||
#endif
|
#endif
|
||||||
puts(" -l Force LoROM");
|
puts(" -l Force LoROM");
|
||||||
puts(" -m Disable GUI (Must specify ROM filename)");
|
puts(" -m Disable GUI (Must specify ROM filename)");
|
||||||
|
puts(" -mc Exit ZSNES when closing a movie");
|
||||||
puts(" -n # Enable scanlines (when available)");
|
puts(" -n # Enable scanlines (when available)");
|
||||||
puts(" Where # is: 1 = full, 2 = 25%, 3 = 50%");
|
puts(" Where # is: 1 = full, 2 = 25%, 3 = 50%");
|
||||||
puts(" -om Enable MMX support (when available)");
|
puts(" -om Enable MMX support (when available)");
|
||||||
@@ -478,6 +479,11 @@ static void handle_params(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
else if (tolower(argv[i][1]) == 'm' && argv[i][2] == 'c') //Autoload save state
|
||||||
|
{
|
||||||
|
ZMVZClose = 1;
|
||||||
|
}
|
||||||
|
|
||||||
else if (tolower(argv[i][1]) == 'o' && tolower(argv[i][2]) == 'm') //Enable MMX support
|
else if (tolower(argv[i][1]) == 'o' && tolower(argv[i][2]) == 'm') //Enable MMX support
|
||||||
{
|
{
|
||||||
MMXSupport = 1;
|
MMXSupport = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user