Win32 - TASEDit - more mapping out logic & structure.
This commit is contained in:
parent
95d40beaee
commit
ed2a319661
|
@ -119,6 +119,10 @@ static LONG CustomDraw(NMLVCUSTOMDRAW* msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CreateProject(MovieData data)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
// called from the rest of the emulator when things happen and the tasedit should change to reflect it
|
// called from the rest of the emulator when things happen and the tasedit should change to reflect it
|
||||||
void UpdateTasEdit()
|
void UpdateTasEdit()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
|
#include "movie.h"
|
||||||
|
|
||||||
void DoTasEdit();
|
void DoTasEdit();
|
||||||
void UpdateTasEdit();
|
void UpdateTasEdit();
|
||||||
|
void CreateProject(MovieData data);
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include "./drivers/win/common.h"
|
#include "./drivers/win/common.h"
|
||||||
|
#include "./drivers/win/tasedit.h"
|
||||||
extern void AddRecentMovieFile(const char *filename);
|
extern void AddRecentMovieFile(const char *filename);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -818,11 +819,16 @@ void poweron(bool shouldDisableBatteryLoading)
|
||||||
|
|
||||||
void FCEUMOV_EnterTasEdit()
|
void FCEUMOV_EnterTasEdit()
|
||||||
{
|
{
|
||||||
|
//If no movie, start a new project, currMovieData will serve as the "main branch" file, so give it a filename and save that into the project
|
||||||
|
//Dump all header info int ot the project file
|
||||||
|
|
||||||
|
//Else use the currentmovie to create a new project
|
||||||
|
|
||||||
|
//BIG TODO: Why is this tasedit stuff in movie.cpp? Let's movie it out, it is win32 only anyway
|
||||||
if (movieMode == MOVIEMODE_INACTIVE)
|
if (movieMode == MOVIEMODE_INACTIVE)
|
||||||
{
|
{
|
||||||
//stop any current movie activity
|
//stop any current movie activity
|
||||||
FCEUI_StopMovie();
|
FCEUI_StopMovie();
|
||||||
|
|
||||||
//clear the current movie
|
//clear the current movie
|
||||||
currFrameCounter = 0;
|
currFrameCounter = 0;
|
||||||
currMovieData = MovieData();
|
currMovieData = MovieData();
|
||||||
|
@ -833,9 +839,10 @@ void FCEUMOV_EnterTasEdit()
|
||||||
|
|
||||||
//reset the rom
|
//reset the rom
|
||||||
poweron(false);
|
poweron(false);
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
FCEUI_StopMovie();
|
FCEUI_StopMovie();
|
||||||
|
|
||||||
currMovieData.greenZoneCount=currFrameCounter;
|
currMovieData.greenZoneCount=currFrameCounter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -844,14 +851,15 @@ void FCEUMOV_EnterTasEdit()
|
||||||
//todo - maybe this instead
|
//todo - maybe this instead
|
||||||
//FCEUD_SetInput(currMovieData.fourscore,currMovieData.microphone,(ESI)currMovieData.ports[0],(ESI)currMovieData.ports[1],(ESIFC)currMovieData.ports[2]);
|
//FCEUD_SetInput(currMovieData.fourscore,currMovieData.microphone,(ESI)currMovieData.ports[0],(ESI)currMovieData.ports[1],(ESIFC)currMovieData.ports[2]);
|
||||||
|
|
||||||
//pause the emulator
|
#ifdef WIN32
|
||||||
FCEUI_SetEmulationPaused(1);
|
CreateProject(currMovieData);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
FCEUI_SetEmulationPaused(1); //pause the emulator
|
||||||
|
|
||||||
//and enter tasedit mode
|
//and enter tasedit mode
|
||||||
movieMode = MOVIEMODE_TASEDIT;
|
movieMode = MOVIEMODE_TASEDIT;
|
||||||
|
|
||||||
currMovieData.TryDumpIncremental();
|
currMovieData.TryDumpIncremental();
|
||||||
|
|
||||||
FCEU_DispMessage("Tasedit engaged",0);
|
FCEU_DispMessage("Tasedit engaged",0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue