mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 04:33:09 +00:00
CRYO: Replace file_t by Common::File
This commit is contained in:
parent
1e1e90f8ec
commit
e76e4c8136
@ -350,7 +350,7 @@ uint16 CLMouse_IsDown() {
|
||||
}
|
||||
|
||||
///// CLFile
|
||||
void CLFile_Write(file_t &handle, void *buffer, int32 *size) {
|
||||
void CLFile_Write(Common::File &handle, void *buffer, int32 *size) {
|
||||
assert(0);
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ typedef struct HNMHeader HNMHeader;
|
||||
struct hnm_t {
|
||||
int _frameNum;
|
||||
int ff_4;
|
||||
file_t *_file;
|
||||
Common::File *_file;
|
||||
HNMHeader _header;
|
||||
byte *tmpBuffer[2];
|
||||
byte *finalBuffer;
|
||||
@ -204,7 +204,7 @@ void CLPalette_DeactivateInterval();
|
||||
void CLPalette_Send2Screen(struct color_t *palette, uint16 first, uint16 count);
|
||||
void CLPalette_BeSystem();
|
||||
|
||||
void CLFile_Write(file_t &handle, void *buffer, int32 *size);
|
||||
void CLFile_Write(Common::File &handle, void *buffer, int32 *size);
|
||||
|
||||
void CLSound_PrepareSample(sound_t *sound, int16 mode);
|
||||
void CLSound_SetWantsDesigned(int16 designed);
|
||||
|
@ -8023,7 +8023,7 @@ void EdenGame::phase560() {
|
||||
//// saveload.c
|
||||
void EdenGame::savegame(char *name) {
|
||||
// filespec_t fs;
|
||||
// file_t handle;
|
||||
// Common::File handle;
|
||||
int32 size;
|
||||
// CLFile_MakeStruct(0, 0, name, &fs);
|
||||
// CLFile_Create(&fs);
|
||||
@ -8121,7 +8121,7 @@ void EdenGame::loadrestart() {
|
||||
|
||||
void EdenGame::loadgame(char *name) {
|
||||
// filespec_t fs;
|
||||
// file_t handle;
|
||||
// Common::File handle;
|
||||
// CLFile_MakeStruct(0, 0, name, &fs);
|
||||
// CLFile_Open(&fs, 3, handle);
|
||||
|
||||
|
@ -613,7 +613,7 @@ private:
|
||||
color_t newPalette[256];
|
||||
Common::Rect rect_dst, rect_src;
|
||||
void *voiceSamplesBuffer; //TODO: sound sample buffer
|
||||
file_t h_bigfile;
|
||||
Common::File h_bigfile;
|
||||
byte info_list[16];
|
||||
bool needToFade;
|
||||
byte lastMusicNum;
|
||||
|
@ -28,8 +28,6 @@
|
||||
|
||||
namespace Cryo {
|
||||
|
||||
typedef Common::File file_t;
|
||||
|
||||
#if 1
|
||||
const int subtitles_x_margin = 16; //PC
|
||||
const int subtitles_x_scr_margin = 16;
|
||||
|
@ -74,7 +74,7 @@ hnm_t *HnmPlayer::resetInternals() {
|
||||
}
|
||||
|
||||
// Original name: CLHNM_SetFile
|
||||
void HnmPlayer::setFile(hnm_t *hnm, file_t *file) {
|
||||
void HnmPlayer::setFile(hnm_t *hnm, Common::File *file) {
|
||||
hnm->_file = file;
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ public:
|
||||
void setFinalBuffer(hnm_t *hnm, byte *buffer);
|
||||
int getFrameNum(hnm_t *hnm);
|
||||
hnm_t *resetInternals();
|
||||
void setFile(hnm_t *hnm, file_t *file);
|
||||
void setFile(hnm_t *hnm, Common::File *file);
|
||||
|
||||
soundchannel_t *getSoundChannel();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user