mirror of
https://github.com/libretro/beetle-pce-libretro.git
synced 2024-11-23 08:09:43 +00:00
Buildfixes
This commit is contained in:
parent
77eda41d34
commit
17c298af79
44
libretro.cpp
44
libretro.cpp
@ -951,7 +951,7 @@ bool retro_load_game_special(unsigned, const struct retro_game_info *, size_t)
|
||||
|
||||
#define MAX_PLAYERS 5
|
||||
#define MAX_BUTTONS 15
|
||||
static uint8_t input_buf[MAX_PLAYERS][2] = {0};
|
||||
static uint8_t input_buf[MAX_PLAYERS][2] = {{0}};
|
||||
static unsigned int input_type[MAX_PLAYERS] = {0};
|
||||
|
||||
static int16_t mousedata[MAX_PLAYERS][3] = {{0}};
|
||||
@ -1669,21 +1669,45 @@ void retro_run(void)
|
||||
bool resolution_changed = false;
|
||||
rects[0] = ~0;
|
||||
|
||||
EmulateSpecStruct spec = {0};
|
||||
EmulateSpecStruct spec;
|
||||
|
||||
spec.surface = surf;
|
||||
spec.SoundRate = 44100;
|
||||
spec.SoundBuf = sound_buf;
|
||||
spec.VideoFormatChanged = true;
|
||||
|
||||
spec.DisplayRect.x = 0;
|
||||
spec.DisplayRect.y = 0;
|
||||
spec.DisplayRect.w = 0;
|
||||
spec.DisplayRect.h = 0;
|
||||
|
||||
spec.LineWidths = rects;
|
||||
spec.SoundBufMaxSize = sizeof(sound_buf) / 2;
|
||||
spec.SoundVolume = 1.0;
|
||||
spec.soundmultiplier = 1.0;
|
||||
spec.SoundBufSize = 0;
|
||||
spec.CustomPalette = use_palette ? composite_palette : NULL;
|
||||
spec.CustomPaletteNumEntries = use_palette ? 512 : 0;
|
||||
spec.VideoFormatChanged = true;
|
||||
spec.SoundFormatChanged = false;
|
||||
|
||||
spec.IsFMV = NULL;
|
||||
|
||||
spec.InterlaceOn = false;
|
||||
spec.InterlaceField = false;
|
||||
|
||||
spec.skip = false;
|
||||
|
||||
spec.SoundFormatChanged = false;
|
||||
|
||||
spec.SoundRate = 44100;
|
||||
|
||||
spec.SoundBuf = sound_buf;
|
||||
spec.SoundBufMaxSize = sizeof(sound_buf) / 2;
|
||||
spec.SoundBufSize = 0;
|
||||
spec.SoundBufSizeALMS = 0;
|
||||
|
||||
spec.MasterCycles = 0;
|
||||
spec.MasterCyclesALMS = 0;
|
||||
|
||||
spec.SoundVolume = 1.0;
|
||||
spec.soundmultiplier = 1.0;
|
||||
|
||||
spec.NeedRewind = false;
|
||||
spec.NeedSoundReverse = false;
|
||||
|
||||
if (spec.SoundRate != last_sound_rate)
|
||||
{
|
||||
spec.SoundFormatChanged = true;
|
||||
|
@ -853,7 +853,6 @@ bool CDAccess_Image::ImageOpen(const std::string& path, bool image_memcache)
|
||||
return false;
|
||||
}
|
||||
|
||||
FirstTrack = FirstTrack;
|
||||
NumTracks = 1 + LastTrack - FirstTrack;
|
||||
|
||||
int32_t RunningLBA = 0;
|
||||
|
@ -214,8 +214,8 @@ typedef struct
|
||||
// Set and used internally if driver-side code hasn't specified a non-NULL value for CustomPalette. If driver side uses it, driver side should
|
||||
// set VideoFormatChanged to true whenever the custom palette changes.
|
||||
//
|
||||
uint8 *CustomPalette = nullptr;
|
||||
uint32 CustomPaletteNumEntries = 0;
|
||||
uint8 *CustomPalette;
|
||||
uint32 CustomPaletteNumEntries;
|
||||
|
||||
// TODO
|
||||
bool *IsFMV;
|
||||
|
Loading…
Reference in New Issue
Block a user