Remove all MSVC __int64 (#742)
This commit is contained in:
@@ -35,7 +35,7 @@ ConsoleSaveFileOriginal::ConsoleSaveFileOriginal(const wstring &fileName, LPVOID
|
||||
// We'll only be committing these as required to grow the storage we need, which will
|
||||
// the storage to grow without having to use realloc.
|
||||
|
||||
// AP - The Vita doesn't have virtual memory so a pretend system has been implemented in PSVitaStubs.cpp.
|
||||
// AP - The Vita doesn't have virtual memory so a pretend system has been implemented in PSVitaStubs.cpp.
|
||||
// All access to the memory must be done via the access function as the pointer returned from VirtualAlloc
|
||||
// can't be used directly.
|
||||
pvHeap = VirtualAlloc(NULL, MAX_PAGE_COUNT * CSF_PAGE_SIZE, RESERVE_ALLOCATION, PAGE_READWRITE );
|
||||
@@ -116,7 +116,7 @@ ConsoleSaveFileOriginal::ConsoleSaveFileOriginal(const wstring &fileName, LPVOID
|
||||
#endif
|
||||
app.DebugPrintf("Filesize - %d, Adjusted size - %d\n",fileSize,storageLength);
|
||||
fileSize = storageLength;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __PSVITA__
|
||||
if(plat == SAVE_FILE_PLATFORM_PSVITA)
|
||||
@@ -202,7 +202,7 @@ ConsoleSaveFileOriginal::ConsoleSaveFileOriginal(const wstring &fileName, LPVOID
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
// Clear the first 8 bytes that reference the header
|
||||
header.WriteHeader( pvSaveMem );
|
||||
}
|
||||
@@ -213,7 +213,7 @@ ConsoleSaveFileOriginal::~ConsoleSaveFileOriginal()
|
||||
VirtualFree( pvHeap, MAX_PAGE_COUNT * CSF_PAGE_SIZE, MEM_DECOMMIT );
|
||||
pagesCommitted = 0;
|
||||
// Make sure we don't have any thumbnail data still waiting round - we can't need it now we've destroyed the save file anyway
|
||||
#if defined _XBOX
|
||||
#if defined _XBOX
|
||||
app.GetSaveThumbnail(NULL,NULL);
|
||||
#elif defined __PS3__
|
||||
app.GetSaveThumbnail(NULL,NULL, NULL,NULL);
|
||||
@@ -565,7 +565,7 @@ void ConsoleSaveFileOriginal::MoveDataBeyond(FileEntry *file, DWORD nNumberOfByt
|
||||
if ( uiCopyEnd > uiFromEnd )
|
||||
{
|
||||
// Needs to be clamped to the end of our region
|
||||
uiCopyEnd = uiFromEnd;
|
||||
uiCopyEnd = uiFromEnd;
|
||||
}
|
||||
#ifdef __PSVITA__
|
||||
// AP - use this to access the virtual memory
|
||||
@@ -775,7 +775,7 @@ void ConsoleSaveFileOriginal::Flush(bool autosave, bool updateThumbnail )
|
||||
BYTE bTextMetadata[88];
|
||||
ZeroMemory(bTextMetadata,88);
|
||||
|
||||
__int64 seed = 0;
|
||||
int64_t seed = 0;
|
||||
bool hasSeed = false;
|
||||
if(MinecraftServer::getInstance()!= NULL && MinecraftServer::getInstance()->levels[0]!=NULL)
|
||||
{
|
||||
@@ -791,7 +791,7 @@ void ConsoleSaveFileOriginal::Flush(bool autosave, bool updateThumbnail )
|
||||
|
||||
#ifdef _XBOX
|
||||
StorageManager.SaveSaveData( compLength+8,pbThumbnailData,dwThumbnailDataSize,bTextMetadata,iTextMetadataBytes );
|
||||
delete [] pbThumbnailData;
|
||||
delete [] pbThumbnailData;
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
if( app.DebugSettingsOn())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user