mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r4975) - Codechange: increase the number of file handles from 32 to 64 (arbitrary powers of 2!) to allow more GRF files to be loaded.
This commit is contained in:
parent
a4dc75e8f4
commit
1a704f587c
2
fileio.c
2
fileio.c
@ -20,7 +20,7 @@ typedef struct {
|
|||||||
byte *buffer, *buffer_end;
|
byte *buffer, *buffer_end;
|
||||||
uint32 pos;
|
uint32 pos;
|
||||||
FILE *cur_fh;
|
FILE *cur_fh;
|
||||||
FILE *handles[32];
|
FILE *handles[64];
|
||||||
byte buffer_start[512];
|
byte buffer_start[512];
|
||||||
} Fio;
|
} Fio;
|
||||||
|
|
||||||
|
2
sound.c
2
sound.c
@ -22,7 +22,7 @@ typedef struct FileEntry {
|
|||||||
static uint _file_count;
|
static uint _file_count;
|
||||||
static FileEntry* _files;
|
static FileEntry* _files;
|
||||||
|
|
||||||
#define SOUND_SLOT 31
|
#define SOUND_SLOT 63
|
||||||
// Number of levels of panning per side
|
// Number of levels of panning per side
|
||||||
#define PANNING_LEVELS 16
|
#define PANNING_LEVELS 16
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user