Mercurial > mm7
comparison UI/UISaveLoad.cpp @ 1545:c4ab816fcc5e
assert, Abortf, AbortWithError -> Assert, Error
refactors here and there
author | Nomad |
---|---|
date | Sat, 07 Sep 2013 20:05:20 +0200 |
parents | 8c2f689b5f0b |
children | 75fafd8ced59 |
comparison
equal
deleted
inserted
replaced
1544:499761153844 | 1545:c4ab816fcc5e |
---|---|
1 #ifdef _MSC_VER | 1 #ifdef _MSC_VER |
2 #define _CRT_SECURE_NO_WARNINGS | 2 #define _CRT_SECURE_NO_WARNINGS |
3 #endif | 3 #endif |
4 | 4 |
5 #include <assert.h> | |
6 #include <io.h> | 5 #include <io.h> |
7 #include "..\MM7.h" | 6 #include "..\MM7.h" |
8 | 7 |
9 #include "..\Keyboard.h" | 8 #include "..\Keyboard.h" |
10 | 9 |
286 { | 285 { |
287 pSaveListPosition = 0; | 286 pSaveListPosition = 0; |
288 uLoadGameUI_SelectedSlot = 0; | 287 uLoadGameUI_SelectedSlot = 0; |
289 } | 288 } |
290 pLODFile.AllocSubIndicesAndIO(0x12C, 0); | 289 pLODFile.AllocSubIndicesAndIO(0x12C, 0); |
291 assert(sizeof(SavegameHeader) == 0x64); | 290 Assert(sizeof(SavegameHeader) == 0x64); |
292 //v3 = 0; | 291 //v3 = 0; |
293 for (uint i = 0; i < uNumSavegameFiles; ++i) | 292 for (uint i = 0; i < uNumSavegameFiles; ++i) |
294 { | 293 { |
295 | 294 |
296 sprintf(pTmpBuf.data(), "saves\\%s", pSavegameList->pFileList[i].pSaveFileName); | 295 sprintf(pTmpBuf.data(), "saves\\%s", pSavegameList->pFileList[i].pSaveFileName); |