Add -playmovie (the "old-fashioned" way)
This commit is contained in:
parent
ce72bbad0b
commit
52b203b8a2
|
@ -23,6 +23,8 @@
|
|||
#include "common.h"
|
||||
#include "../common/args.h"
|
||||
|
||||
char* MovieToLoad = 0;
|
||||
|
||||
// TODO: Parsing arguments needs to be improved a lot. A LOT.
|
||||
|
||||
/**
|
||||
|
@ -39,6 +41,7 @@ char *ParseArgies(int argc, char *argv[])
|
|||
//{"-nofs",0,&eoptions,0},
|
||||
{"-clipsides",0,&eoptions,0x8000|EO_CLIPSIDES},
|
||||
{"-nothrottle",0,&eoptions,0x8000|EO_NOTHROTTLE},
|
||||
{"-playmovie",0,&MovieToLoad,0x4001},
|
||||
};
|
||||
|
||||
if(argc <= 1)
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
char *ParseArgies(int argc, char *argv[]);
|
||||
extern char* MovieToLoad;
|
||||
char *ParseArgies(int argc, char *argv[]);
|
||||
|
|
|
@ -671,8 +671,6 @@ int main(int argc,char *argv[])
|
|||
|
||||
InitSpeedThrottle();
|
||||
|
||||
UpdateCheckedMenuItems();
|
||||
|
||||
if(t)
|
||||
{
|
||||
ALoad(t);
|
||||
|
@ -683,7 +681,15 @@ int main(int argc,char *argv[])
|
|||
}
|
||||
|
||||
|
||||
if(MovieToLoad)
|
||||
{
|
||||
FCEUI_LoadMovie(MovieToLoad, 1, 0);
|
||||
free(MovieToLoad);
|
||||
MovieToLoad = NULL;
|
||||
}
|
||||
if (MemWatchLoadOnStart) CreateMemWatch();
|
||||
|
||||
UpdateCheckedMenuItems();
|
||||
doloopy:
|
||||
UpdateFCEUWindow();
|
||||
if(GameInfo)
|
||||
|
|
Loading…
Reference in New Issue