add a hacky TweakCount to demonstrate how "rerecord count" could be tracked in tasedit
This commit is contained in:
parent
195528abc5
commit
b30a69020b
|
@ -1344,6 +1344,7 @@ BEGIN
|
||||||
PUSHBUTTON "Send",IDC_BUTTON9,392,148,31,14,WS_DISABLED
|
PUSHBUTTON "Send",IDC_BUTTON9,392,148,31,14,WS_DISABLED
|
||||||
LTEXT "Sends to Notes column",IDC_STATIC,348,137,74,8
|
LTEXT "Sends to Notes column",IDC_STATIC,348,137,74,8
|
||||||
CONTROL "",IDC_LIST2,"SysListView32",LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,348,216,114,156
|
CONTROL "",IDC_LIST2,"SysListView32",LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,348,216,114,156
|
||||||
|
LTEXT "Tweak Count",IDC_TWEAKCOUNT,348,175,71,8
|
||||||
END
|
END
|
||||||
|
|
||||||
ASSEMBLER DIALOGEX 0, 0, 202, 135
|
ASSEMBLER DIALOGEX 0, 0, 202, 135
|
||||||
|
|
|
@ -487,6 +487,7 @@
|
||||||
#define IDC_SINGLEINSTANCE 1258
|
#define IDC_SINGLEINSTANCE 1258
|
||||||
#define IDC_MOVIE_CLOSEAFTERPLAYBACK 1258
|
#define IDC_MOVIE_CLOSEAFTERPLAYBACK 1258
|
||||||
#define IDC_C_WATCH_SEPARATE 1259
|
#define IDC_C_WATCH_SEPARATE 1259
|
||||||
|
#define IDC_TWEAKCOUNT 1260
|
||||||
#define MENU_NETWORK 40040
|
#define MENU_NETWORK 40040
|
||||||
#define MENU_PALETTE 40041
|
#define MENU_PALETTE 40041
|
||||||
#define MENU_SOUND 40042
|
#define MENU_SOUND 40042
|
||||||
|
@ -814,7 +815,7 @@
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 160
|
#define _APS_NEXT_RESOURCE_VALUE 160
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40417
|
#define _APS_NEXT_COMMAND_VALUE 40417
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1260
|
#define _APS_NEXT_CONTROL_VALUE 1261
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1032,6 +1032,13 @@ BOOL CALLBACK WndprocTasEdit(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
||||||
{
|
{
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
|
case WM_PAINT:
|
||||||
|
{
|
||||||
|
char temp[128];
|
||||||
|
sprintf(temp,"TweakCount: %d\n",currMovieData.tweakCount);
|
||||||
|
SetWindowText(GetDlgItem(hwndDlg,IDC_TWEAKCOUNT),temp);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
if (TasEdit_wndx==-32000) TasEdit_wndx=0; //Just in case
|
if (TasEdit_wndx==-32000) TasEdit_wndx=0; //Just in case
|
||||||
if (TasEdit_wndy==-32000) TasEdit_wndy=0;
|
if (TasEdit_wndy==-32000) TasEdit_wndy=0;
|
||||||
|
|
|
@ -141,7 +141,7 @@ void MovieData::TryDumpIncremental()
|
||||||
|
|
||||||
currMovieData.storeTasSavestate(currFrameCounter, Z_DEFAULT_COMPRESSION);
|
currMovieData.storeTasSavestate(currFrameCounter, Z_DEFAULT_COMPRESSION);
|
||||||
currMovieData.greenZoneCount=currFrameCounter+1;
|
currMovieData.greenZoneCount=currFrameCounter+1;
|
||||||
} else if (currFrameCounter < currMovieData.greenZoneCount || !movie_readonly)
|
} else if (currFrameCounter < currMovieData.greenZoneCount && !movie_readonly)
|
||||||
{
|
{
|
||||||
currMovieData.storeTasSavestate(currFrameCounter, Z_DEFAULT_COMPRESSION);
|
currMovieData.storeTasSavestate(currFrameCounter, Z_DEFAULT_COMPRESSION);
|
||||||
} else if (currFrameCounter > currMovieData.greenZoneCount && static_cast<unsigned int>(currMovieData.greenZoneCount)<currMovieData.records.size())
|
} else if (currFrameCounter > currMovieData.greenZoneCount && static_cast<unsigned int>(currMovieData.greenZoneCount)<currMovieData.records.size())
|
||||||
|
@ -402,6 +402,7 @@ MovieData::MovieData()
|
||||||
, binaryFlag(false)
|
, binaryFlag(false)
|
||||||
, greenZoneCount(0)
|
, greenZoneCount(0)
|
||||||
, microphone(false)
|
, microphone(false)
|
||||||
|
, tweakCount(0)
|
||||||
{
|
{
|
||||||
memset(&romChecksum,0,sizeof(MD5DATA));
|
memset(&romChecksum,0,sizeof(MD5DATA));
|
||||||
}
|
}
|
||||||
|
@ -920,6 +921,7 @@ void MovieData::storeTasSavestate(int frame, int compression_level)
|
||||||
savestates.resize(frame+1);
|
savestates.resize(frame+1);
|
||||||
|
|
||||||
MovieData::dumpSavestateTo(&savestates[frame],compression_level);
|
MovieData::dumpSavestateTo(&savestates[frame],compression_level);
|
||||||
|
tweakCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
//begin playing an existing movie
|
//begin playing an existing movie
|
||||||
|
|
|
@ -192,6 +192,7 @@ public:
|
||||||
//----TasEdit stuff---
|
//----TasEdit stuff---
|
||||||
int greenZoneCount;
|
int greenZoneCount;
|
||||||
int loadFrameCount;
|
int loadFrameCount;
|
||||||
|
int tweakCount;
|
||||||
//----
|
//----
|
||||||
|
|
||||||
int getNumRecords() { return records.size(); }
|
int getNumRecords() { return records.size(); }
|
||||||
|
|
Loading…
Reference in New Issue