Auto-increase save slot now shows the right slot onscreen, and works while recording movies as well.
This commit is contained in:
@@ -594,33 +594,15 @@ void statesaver()
|
||||
static char *txtsavenum = 0;
|
||||
static char *txtrrsvnum = 0;
|
||||
|
||||
//Get the state number
|
||||
INSERT_POSITION_NUMBER(txtsavemsg, txtsavenum);
|
||||
INSERT_POSITION_NUMBER(txtrrsvmsg, txtrrsvnum);
|
||||
|
||||
//Save State code
|
||||
#ifdef __UNIXSDL__
|
||||
SRAMChdir();
|
||||
#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
|
||||
if (AutoIncSaveSlot)
|
||||
{
|
||||
if (firstsaveinc)
|
||||
{
|
||||
firstsaveinc = 0;
|
||||
}
|
||||
if (firstsaveinc) { firstsaveinc = 0; }
|
||||
else
|
||||
{
|
||||
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();
|
||||
|
||||
if ((fhandle = fopen(fnamest+1,"wb")))
|
||||
|
||||
Reference in New Issue
Block a user