Mercurial > mm7
comparison SaveLoad.cpp @ 4:8e33efd39355
15.01.13(work)
author | Ritor1 |
---|---|
date | Tue, 15 Jan 2013 17:44:23 +0600 |
parents | 9c0607679772 |
children | 6ad816231528 |
comparison
equal
deleted
inserted
replaced
3:bf31c505f4d3 | 4:8e33efd39355 |
---|---|
668 | 668 |
669 //----- (0045E297) -------------------------------------------------------- | 669 //----- (0045E297) -------------------------------------------------------- |
670 void SavegameList::Initialize(unsigned int bHideEmptySlots) | 670 void SavegameList::Initialize(unsigned int bHideEmptySlots) |
671 { | 671 { |
672 memset(pSavegameList, 0, 0x3138); | 672 memset(pSavegameList, 0, 0x3138); |
673 uNumSavegameFiles = 0; | 673 uNumSavegameFiles = 0; |
674 | 674 |
675 _chdir("saves"); | 675 _chdir("saves"); |
676 { | 676 { |
677 if (!bHideEmptySlots && _access(pGlobalTXT_LocalizationStrings[613], 0) != -1 ) | 677 if (!bHideEmptySlots && _access(pGlobalTXT_LocalizationStrings[613], 0) != -1 ) // AutoSave.MM7 |
678 strcpy(pSavesNames[uNumSavegameFiles++], pGlobalTXT_LocalizationStrings[613]); | 678 strcpy(pSavesNames[uNumSavegameFiles++], pGlobalTXT_LocalizationStrings[613]); |
679 | 679 |
680 for (uint i = 0; i < 40; ++i) | 680 for (uint i = 0; i < 40; ++i) |
681 { | 681 { |
682 sprintf(pTmpBuf, "save%03d.mm7", i); | 682 sprintf(pTmpBuf, "save%03d.mm7", i); |