Replace all windows types
This commit is contained in:
@@ -11,7 +11,7 @@ private:
|
||||
|
||||
wstring m_fileName;
|
||||
|
||||
// HANDLE hHeap;
|
||||
// void* hHeap;
|
||||
static void *pvHeap;
|
||||
static unsigned int pagesCommitted;
|
||||
#ifdef _LARGE_WORLDS
|
||||
@@ -24,18 +24,18 @@ private:
|
||||
static const unsigned int CSF_PAGE_SIZE = 64 * 1024;
|
||||
static const unsigned int MAX_PAGE_COUNT = 1024;
|
||||
#endif
|
||||
LPVOID pvSaveMem;
|
||||
void* pvSaveMem;
|
||||
|
||||
CRITICAL_SECTION m_lock;
|
||||
|
||||
void PrepareForWrite( FileEntry *file, DWORD nNumberOfBytesToWrite );
|
||||
void MoveDataBeyond(FileEntry *file, DWORD nNumberOfBytesToWrite);
|
||||
void PrepareForWrite( FileEntry *file, unsigned long nNumberOfBytesToWrite );
|
||||
void MoveDataBeyond(FileEntry *file, unsigned long nNumberOfBytesToWrite);
|
||||
|
||||
public:
|
||||
#if (defined __PS3__ || defined __ORBIS__ || defined __PSVITA__ || defined _DURANGO || defined _WINDOWS64)
|
||||
static int SaveSaveDataCallback(LPVOID lpParam,bool bRes);
|
||||
static int SaveSaveDataCallback(void* lpParam,bool bRes);
|
||||
#endif
|
||||
ConsoleSaveFileOriginal(const wstring &fileName, LPVOID pvSaveData = NULL, DWORD fileSize = 0, bool forceCleanSave = false, ESavePlatform plat = SAVE_FILE_PLATFORM_LOCAL);
|
||||
ConsoleSaveFileOriginal(const wstring &fileName, void* pvSaveData = NULL, unsigned long fileSize = 0, bool forceCleanSave = false, ESavePlatform plat = SAVE_FILE_PLATFORM_LOCAL);
|
||||
virtual ~ConsoleSaveFileOriginal();
|
||||
|
||||
// 4J Stu - Initial implementation is intended to have a similar interface to the standard Xbox file access functions
|
||||
@@ -43,11 +43,11 @@ public:
|
||||
virtual FileEntry *createFile( const ConsoleSavePath &fileName );
|
||||
virtual void deleteFile( FileEntry *file );
|
||||
|
||||
virtual void setFilePointer(FileEntry *file,LONG lDistanceToMove,PLONG lpDistanceToMoveHigh,DWORD dwMoveMethod);
|
||||
virtual BOOL writeFile( FileEntry *file, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten );
|
||||
virtual BOOL zeroFile(FileEntry *file, DWORD nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten);
|
||||
virtual BOOL readFile( FileEntry *file, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead );
|
||||
virtual BOOL closeHandle( FileEntry *file );
|
||||
virtual void setFilePointer(FileEntry *file,int32_t lDistanceToMove,PLONG lpDistanceToMoveHigh,unsigned long dwMoveMethod);
|
||||
virtual bool writeFile( FileEntry *file, const void* lpBuffer, unsigned long nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten );
|
||||
virtual bool zeroFile(FileEntry *file, unsigned long nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten);
|
||||
virtual bool readFile( FileEntry *file, void* lpBuffer, unsigned long nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead );
|
||||
virtual bool closeHandle( FileEntry *file );
|
||||
|
||||
virtual void finalizeWrite();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user