mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 03:24:50 +00:00
FULLPIPE: Fix ModalSaveGame::setup()
This commit is contained in:
parent
c81099d390
commit
3687987291
@ -1584,17 +1584,17 @@ void ModalSaveGame::setup(Scene *sc, int mode) {
|
||||
|
||||
int x = _bgr->_ox + _bgr->getDimensions(&point)->x / 2;
|
||||
int y = _bgr->_oy + 90;
|
||||
bool flag = false;
|
||||
int w;
|
||||
FileInfo *fileinfo;
|
||||
|
||||
for (int i = 0; i < 7; i++) {
|
||||
fileinfo = new FileInfo;
|
||||
memset(fileinfo, 0, sizeof(FileInfo));
|
||||
|
||||
snprintf(fileinfo->filename, 160, "save%02d.sav", i);
|
||||
|
||||
if (!getFileInfo(fileinfo->filename, fileinfo) || flag) {
|
||||
flag = true;
|
||||
if (!getFileInfo(fileinfo->filename, fileinfo)) {
|
||||
fileinfo->empty = true;
|
||||
w = _emptyD->getDimensions(&point)->x;
|
||||
} else {
|
||||
w = 0;
|
||||
|
@ -31,7 +31,7 @@ class Sound;
|
||||
|
||||
struct FileInfo {
|
||||
char filename[260];
|
||||
int fi_104;
|
||||
bool empty;
|
||||
int day;
|
||||
int month;
|
||||
int year;
|
||||
|
Loading…
x
Reference in New Issue
Block a user