Can now dump raw video via command line.
This commit is contained in:
@@ -56,7 +56,7 @@ EXTSYM memaccessbankr1648mb,procexecloop,ram7fa,wramdata,wramdataa,fname,fnames
|
|||||||
EXTSYM GetCurDir,SRAMChdir,cfgloadsdir,fnamest,statefileloc,InitDir,InitDrive
|
EXTSYM GetCurDir,SRAMChdir,cfgloadsdir,fnamest,statefileloc,InitDir,InitDrive
|
||||||
EXTSYM curromspace,infoloc,patchfile,romispal,initregr,initregw,memtabler16
|
EXTSYM curromspace,infoloc,patchfile,romispal,initregr,initregw,memtabler16
|
||||||
EXTSYM memtabler8,memtablew16,memtablew8,sfxramdata,ScrDispl,wramreadptr
|
EXTSYM memtabler8,memtablew16,memtablew8,sfxramdata,ScrDispl,wramreadptr
|
||||||
EXTSYM wramwriteptr,loadstate2,CMovieExt,MoviePlay
|
EXTSYM wramwriteptr,loadstate2,CMovieExt,MoviePlay,MovieDumpRaw
|
||||||
|
|
||||||
;initc.c
|
;initc.c
|
||||||
EXTSYM clearmem,clearSPCRAM,PatchUsingIPS,ZOpenFileName,loadROM,SPC7110IndexSize
|
EXTSYM clearmem,clearSPCRAM,PatchUsingIPS,ZOpenFileName,loadROM,SPC7110IndexSize
|
||||||
@@ -83,6 +83,7 @@ blah times 450 db 0
|
|||||||
; FIX STATMAT
|
; FIX STATMAT
|
||||||
NEWSYM autoloadstate, db 0 ; auto load state slot number
|
NEWSYM autoloadstate, db 0 ; auto load state slot number
|
||||||
NEWSYM autoloadmovie, db 0
|
NEWSYM autoloadmovie, db 0
|
||||||
|
NEWSYM ZMVRawDump, db 0
|
||||||
|
|
||||||
NEWSYM EndMessage
|
NEWSYM EndMessage
|
||||||
db ' ',13,10,0
|
db ' ',13,10,0
|
||||||
@@ -249,7 +250,13 @@ NEWSYM init
|
|||||||
mov byte[CMovieExt],al
|
mov byte[CMovieExt],al
|
||||||
|
|
||||||
pushad
|
pushad
|
||||||
|
cmp byte[ZMVRawDump],1
|
||||||
|
jne .norawdump
|
||||||
|
call MovieDumpRaw
|
||||||
|
jmp .aftermovieplay
|
||||||
|
.norawdump
|
||||||
call MoviePlay
|
call MoviePlay
|
||||||
|
.aftermovieplay
|
||||||
popad
|
popad
|
||||||
|
|
||||||
.noautloadmovie
|
.noautloadmovie
|
||||||
|
|||||||
@@ -52,7 +52,8 @@ 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, ZMVZClose;
|
showallext, autoloadstate, smallscreenon, autoloadmovie, ZMVZClose,
|
||||||
|
ZMVRawDump;
|
||||||
|
|
||||||
void ConvertJoyMap1(), ConvertJoyMap2(), zstart(), makeextension();
|
void ConvertJoyMap1(), ConvertJoyMap2(), zstart(), makeextension();
|
||||||
|
|
||||||
@@ -106,7 +107,8 @@ static void display_help()
|
|||||||
#endif
|
#endif
|
||||||
put_line(" -l Force LoROM");
|
put_line(" -l Force LoROM");
|
||||||
put_line(" -m Disable GUI (Must specify ROM filename)");
|
put_line(" -m Disable GUI (Must specify ROM filename)");
|
||||||
put_line(" -mc Exit ZSNES when closing a movie");
|
put_line(" -mc Exit ZSNES when closing a movie (use with -zm)");
|
||||||
|
put_line(" -md Dump raw video (use with -zm)");
|
||||||
put_line(" -n # Enable scanlines (when available)");
|
put_line(" -n # Enable scanlines (when available)");
|
||||||
put_line(" Where # is: 1 = full, 2 = 25%, 3 = 50%");
|
put_line(" Where # is: 1 = full, 2 = 25%, 3 = 50%");
|
||||||
put_line(" -om Enable MMX support (when available)");
|
put_line(" -om Enable MMX support (when available)");
|
||||||
@@ -480,6 +482,11 @@ static void handle_params(int argc, char *argv[])
|
|||||||
ZMVZClose = 1;
|
ZMVZClose = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (tolower(argv[i][1]) == 'm' && argv[i][2] == 'd') //Dump raw vid with ZMV
|
||||||
|
{
|
||||||
|
ZMVRawDump = 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