OpenTTD Source 20250331-master-g3c15e0c889
|
NewGRF Action 0x11 handler. More...
#include "../stdafx.h"
#include "../debug.h"
#include "../newgrf_house.h"
#include "../newgrf_sound.h"
#include "../spritecache.h"
#include "newgrf_bytereader.h"
#include "newgrf_internal.h"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
static void | ImportGRFSound (SoundEntry *sound) |
Process a sound import from another GRF file. | |
static void | LoadGRFSound (size_t offs, SoundEntry *sound) |
Load a sound from a file. | |
static void | GRFSound (ByteReader &buf) |
static void | SkipAct11 (ByteReader &buf) |
NewGRF Action 0x11 handler.
Definition in file newgrf_act11.cpp.
|
static |
Definition at line 71 of file newgrf_act11.cpp.
|
static |
Process a sound import from another GRF file.
sound | Destination for sound. |
Definition at line 24 of file newgrf_act11.cpp.
References GrfProcessingState::file, GetFileByGRFID(), RandomAccessFile::ReadDword(), and RandomAccessFile::ReadWord().
|
static |
Load a sound from a file.
offs | File offset to read sound from. |
sound | Destination for sound. |
Definition at line 55 of file newgrf_act11.cpp.
References GrfProcessingState::file, SpriteFile::GetContainerVersion(), and SoundEntry::grf_container_ver.
|
static |
Definition at line 164 of file newgrf_act11.cpp.