quick checkin so i have files on another computer
This commit is contained in:
parent
c24c415d2a
commit
a2397b25c4
|
@ -561,8 +561,6 @@ int main(int argc,char *argv[])
|
|||
|
||||
ApplyDefaultCommandMapping();
|
||||
|
||||
srand(GetTickCount()); // rand() is used for some GUI sillyness.
|
||||
|
||||
fceu_hInstance = GetModuleHandle(0);
|
||||
|
||||
// Get the base directory
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <time.h>
|
||||
#include "types.h"
|
||||
#include "x6502.h"
|
||||
#include "fceu.h"
|
||||
|
@ -396,6 +397,8 @@ FCEUGI *FCEUI_LoadGame(const char *name, int OverwriteVidMode)
|
|||
**/
|
||||
int FCEUI_Initialize(void)
|
||||
{
|
||||
srand(time(0));
|
||||
|
||||
if(!FCEU_InitVirtualVideo())
|
||||
{
|
||||
return 0;
|
||||
|
|
|
@ -738,9 +738,15 @@ int FCEUMOV_ReadState(FILE* st, uint32 size)
|
|||
LoadFM2(currMovieData, tmp);
|
||||
fclose(tmp);
|
||||
|
||||
//todo - switch to recording
|
||||
//complex TAS logic for when a savestate is loaded:
|
||||
//if we are playing:
|
||||
// then, the movie we are playing must match the one stored in the savestate.
|
||||
//if we are recording:
|
||||
// then, the movie we are playing must match the one stored in the savestate.
|
||||
//if we are doing neither:
|
||||
// then, we must discard this movie
|
||||
|
||||
movieMode = MOVIEMODE_PLAY;
|
||||
//movieMode = MOVIEMODE_PLAY;
|
||||
load_successful = true;
|
||||
|
||||
//// if this savestate was made while replaying,
|
||||
|
|
Loading…
Reference in New Issue