diff options
author | Eugene Sandulenko | 2016-10-08 23:31:21 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 22:42:00 +0100 |
commit | 495d943d00ccd645b68a7a1703f44730b98f5103 (patch) | |
tree | 90a3f2dd933e5b9fee5c43c033f292fc0c8f2308 /engines/cryo/cryolib.cpp | |
parent | 2c1ccf4769013c0f9e8d239e96da514ef623f391 (diff) | |
download | scummvm-rg350-495d943d00ccd645b68a7a1703f44730b98f5103.tar.gz scummvm-rg350-495d943d00ccd645b68a7a1703f44730b98f5103.tar.bz2 scummvm-rg350-495d943d00ccd645b68a7a1703f44730b98f5103.zip |
CRYO: Replace long with portable int32
Diffstat (limited to 'engines/cryo/cryolib.cpp')
-rw-r--r-- | engines/cryo/cryolib.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/cryo/cryolib.cpp b/engines/cryo/cryolib.cpp index 415ac18a9f..9705bc22ed 100644 --- a/engines/cryo/cryolib.cpp +++ b/engines/cryo/cryolib.cpp @@ -37,11 +37,11 @@ typedef int16 OSErr; void SysBeep(int x) { } -OSErr SetFPos(int16 handle, int16 mode, long pos) { +OSErr SetFPos(int16 handle, int16 mode, int32 pos) { return 0; } -OSErr FSRead(int16 handle, long *size, void *buffer) { +OSErr FSRead(int16 handle, int32 *size, void *buffer) { return 0; } @@ -49,12 +49,12 @@ void FlushEvents(int16 arg1, int16 arg2) { } // from mw lib??? -long TickCount() { +int32 TickCount() { return g_system->getMillis(); } ///// CLTimer -volatile long TimerTicks = 0; // incremented in realtime +volatile int32 TimerTicks = 0; // incremented in realtime ///// CLView void CLView_SetSrcZoomValues(View *view, int x, int y) { @@ -371,14 +371,14 @@ void CLFile_Open(filespec_t *fs, int16 mode, file_t &handle) { void CLFile_Close(file_t &handle) { handle.close(); } -void CLFile_SetPosition(file_t &handle, int16 mode, long pos) { +void CLFile_SetPosition(file_t &handle, int16 mode, int32 pos) { assert(mode == 1); handle.seek(pos, 0); } -void CLFile_Read(file_t &handle, void *buffer, long *size) { +void CLFile_Read(file_t &handle, void *buffer, int32 *size) { handle.read(buffer, *size); } -void CLFile_Write(file_t &handle, void *buffer, long *size) { +void CLFile_Write(file_t &handle, void *buffer, int32 *size) { assert(0); } |