Mercurial > mm7
comparison SaveLoad.cpp @ 1607:d4282f59f312
Слияние
author | Ritor1 |
---|---|
date | Wed, 11 Sep 2013 00:16:58 +0600 |
parents | 75fafd8ced59 |
children | c6fe09a06712 |
comparison
equal
deleted
inserted
replaced
1606:25f5c041f39b | 1607:d4282f59f312 |
---|---|
20 #include "SpriteObject.h" | 20 #include "SpriteObject.h" |
21 #include "Viewport.h" | 21 #include "Viewport.h" |
22 #include "stru123.h" | 22 #include "stru123.h" |
23 #include "texts.h" | 23 #include "texts.h" |
24 #include "Log.h" | 24 #include "Log.h" |
25 #include "Allocator.h" | |
26 #include "VideoPlayer.h" | 25 #include "VideoPlayer.h" |
27 | 26 |
28 #include "mm7_data.h" | 27 #include "mm7_data.h" |
29 | 28 |
30 | 29 |
615 FILE *v3; // eax@7 | 614 FILE *v3; // eax@7 |
616 void *pSave; // [sp+170h] [bp-8h]@3 | 615 void *pSave; // [sp+170h] [bp-8h]@3 |
617 | 616 |
618 if ( pVideoPlayer->AnyMovieLoaded() ) | 617 if ( pVideoPlayer->AnyMovieLoaded() ) |
619 pVideoPlayer->Unload(); | 618 pVideoPlayer->Unload(); |
620 pSave = pAllocator->AllocNamedChunk(0, 1000000, 0); | 619 pSave = malloc(1000000); |
621 pNew_LOD->CloseWriteFile(); | 620 pNew_LOD->CloseWriteFile(); |
622 remove("data\\new.lod"); | 621 remove("data\\new.lod"); |
623 | 622 |
624 LOD::FileHeader this_; // [sp+Ch] [bp-16Ch]@3 | 623 LOD::FileHeader this_; // [sp+Ch] [bp-16Ch]@3 |
625 strcpy(this_.LodVersion, "MMVII"); | 624 strcpy(this_.LodVersion, "MMVII"); |
664 pParty->vPosition.y = 1816; | 663 pParty->vPosition.y = 1816; |
665 pParty->sPrevRotationY = 512; | 664 pParty->sPrevRotationY = 512; |
666 pParty->sRotationY = 512; | 665 pParty->sRotationY = 512; |
667 SaveGame(1, 1); | 666 SaveGame(1, 1); |
668 } | 667 } |
669 pAllocator->FreeChunk(pSave); | 668 free(pSave); |
670 } | 669 } |
671 //----- (0045E03A) -------------------------------------------------------- | 670 //----- (0045E03A) -------------------------------------------------------- |
672 unsigned short * MakeScreenshot( signed int width, signed int height ) | 671 unsigned short * MakeScreenshot( signed int width, signed int height ) |
673 { | 672 { |
674 //signed int v2; // edi@1 | 673 //signed int v2; // edi@1 |