Auto-increase save slot now shows the right slot onscreen, and works while recording movies as well.

This commit is contained in:
grinvader
2005-10-07 10:19:11 +00:00
parent 34e23a4ba5
commit 3dabbffec9

View File

@@ -594,33 +594,15 @@ void statesaver()
static char *txtsavenum = 0; static char *txtsavenum = 0;
static char *txtrrsvnum = 0; static char *txtrrsvnum = 0;
//Get the state number
INSERT_POSITION_NUMBER(txtsavemsg, txtsavenum);
INSERT_POSITION_NUMBER(txtrrsvmsg, txtrrsvnum);
//Save State code //Save State code
#ifdef __UNIXSDL__ #ifdef __UNIXSDL__
SRAMChdir(); SRAMChdir();
#endif #endif
if (MovieProcessing == 2)
{
bool mzt_save(char *, bool, bool);
if (mzt_save((char *)fnamest+1, (cbitmode && !NoPictureSave) ? true : false, false))
{
Msgptr = txtrrsvmsg;
MessageOn = MsgCount;
}
return;
}
//'Auto increment savestate slot' code //'Auto increment savestate slot' code
if (AutoIncSaveSlot) if (AutoIncSaveSlot)
{ {
if (firstsaveinc) if (firstsaveinc) { firstsaveinc = 0; }
{
firstsaveinc = 0;
}
else else
{ {
switch (fnamest[statefileloc]) switch (fnamest[statefileloc])
@@ -638,6 +620,21 @@ void statesaver()
} }
} }
//Get the state number
INSERT_POSITION_NUMBER(txtsavemsg, txtsavenum);
INSERT_POSITION_NUMBER(txtrrsvmsg, txtrrsvnum);
if (MovieProcessing == 2)
{
bool mzt_save(char *, bool, bool);
if (mzt_save((char *)fnamest+1, (cbitmode && !NoPictureSave) ? true : false, false))
{
Msgptr = txtrrsvmsg;
MessageOn = MsgCount;
}
return;
}
clim(); clim();
if ((fhandle = fopen(fnamest+1,"wb"))) if ((fhandle = fopen(fnamest+1,"wb")))