diff --git a/src/drivers/win/main.cpp b/src/drivers/win/main.cpp
index 4aedf232..d76a08c1 100644
--- a/src/drivers/win/main.cpp
+++ b/src/drivers/win/main.cpp
@@ -717,8 +717,6 @@ doloopy:
FCEU_UpdateBot();
FCEUI_Emulate(&gfx, &sound, &ssize, 0); //emulate a single frame
- currMovieData.TryDumpIncremental();
-
FCEUD_Update(gfx, sound, ssize); //update displays and debug tools
//mbg 6/30/06 - close game if we were commanded to by calls nested in FCEUI_Emulate()
diff --git a/src/drivers/win/tasedit.cpp b/src/drivers/win/tasedit.cpp
index 92300bec..3c2e70f6 100644
--- a/src/drivers/win/tasedit.cpp
+++ b/src/drivers/win/tasedit.cpp
@@ -192,6 +192,13 @@ static void ColumnSet(int column)
currMovieData.records[*it].setBitValue(0,button,newValue);
ListView_Update(hwndList,*it);
}
+
+ //reduce the green zone
+ int firstSelection = *selectionFrames.begin();
+ currMovieData.greenZoneCount = std::min(firstSelection,currMovieData.greenZoneCount);
+
+ //redraw everything to show the reduced green zone
+ RedrawList();
}
//The subclass wndproc for the listview header
@@ -291,6 +298,9 @@ static void Export()
ofn.lpstrInitialDir=FCEU_GetPath(FCEUMKF_MOVIE);
if(GetSaveFileName(&ofn))
{
+ FILE* outf = fopen(ofn.lpstrFile,"wb");
+ currMovieData.dump(outf);
+ fclose(outf);
}
}
@@ -329,15 +339,10 @@ static void ItemChanged(NMLISTVIEW* info)
}
else
{
- if(ON) {
- printf("%d ON\n",item);
+ if(ON)
selectionFrames.insert(item);
- }
else if(OFF)
- {
- printf("%d OFF\n",item);
selectionFrames.erase(item);
- }
}
}
diff --git a/src/fceu.cpp b/src/fceu.cpp
index 4abdca60..d2b6430f 100644
--- a/src/fceu.cpp
+++ b/src/fceu.cpp
@@ -558,6 +558,8 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski
JustFrameAdvanced = true;
}
+
+ currMovieData.TryDumpIncremental();
}
void FCEUI_CloseGame(void)
diff --git a/vc8/fceux.vcproj b/vc8/fceux.vcproj
index 8e824892..afeaf388 100644
--- a/vc8/fceux.vcproj
+++ b/vc8/fceux.vcproj
@@ -1252,6 +1252,10 @@
RelativePath="..\src\drivers\win\res\ICON_2.ico"
>
+
+
-
-