diff --git a/libretro.c b/libretro.c index 0c455be..876b535 100644 --- a/libretro.c +++ b/libretro.c @@ -429,22 +429,16 @@ static uint64_t video_frames, audio_frames; static void Emulate(EmulateSpecStruct *espec, int skip_frame, int update_sample_rate) { - static MDFN_Rect rects[FB_MAX_HEIGHT]; uint16 butt_data; - rects[0].w = ~0; - espec->surface = surf; espec->DisplayRect.x = 0; espec->DisplayRect.y = 0; espec->DisplayRect.w = 224; espec->DisplayRect.h = 144; - espec->LineWidths = rects; espec->skip = skip_frame; espec->SoundBufSize = 0; - espec->SoundBufSizeALMS = 0; espec->MasterCycles = 0; - espec->MasterCyclesALMS = 0; if (update_sample_rate) WSwan_SetSoundRate(RETRO_SAMPLE_RATE); diff --git a/mednafen/git.h b/mednafen/git.h index 569ac75..9703d33 100644 --- a/mednafen/git.h +++ b/mednafen/git.h @@ -104,44 +104,20 @@ typedef struct // The framebuffer pointed to by surface->pixels is written to by the system emulation code. MDFN_Surface *surface; - // Will be set to TRUE if the video pixel format has changed since the last call to Emulate(), FALSE otherwise. - // Will be set to TRUE on the first call to the Emulate() function/method - bool VideoFormatChanged; - // Set by the system emulation code every frame, to denote the horizontal and vertical offsets of the image, and the size // of the image. If the emulated system sets the elements of LineWidths, then the horizontal offset(x) and width(w) of this structure // are ignored while drawing the image. MDFN_Rect DisplayRect; - // Pointer to an array of MDFN_Rect, number of elements = fb_height, set by the driver code. Individual MDFN_Rect structs written - // to by system emulation code. If the emulated system doesn't support multiple screen widths per frame, or if you handle - // such a situation by outputting at a constant width-per-frame that is the least-common-multiple of the screen widths, then - // you can ignore this. If you do wish to use this, you must set all elements every frame. - MDFN_Rect *LineWidths; - // Skip rendering this frame if true. Set by the driver code. int skip; - // - // If sound is disabled, the driver code must set SoundRate to false, SoundBuf to NULL, SoundBufMaxSize to 0. - - // Will be set to TRUE if the sound format(only rate for now, at least) has changed since the last call to Emulate(), FALSE otherwise. - // Will be set to TRUE on the first call to the Emulate() function/method - bool SoundFormatChanged; - - // Maximum size of the sound buffer, in frames. Set by the driver code. - int32 SoundBufMaxSize; - // Number of frames currently in internal sound buffer. Set by the system emulation code, to be read by the driver code. int32 SoundBufSize; - int32 SoundBufSizeALMS; // SoundBufSize value at last MidSync(), 0 - // if mid sync isn't implemented for the emulation module in use. // Number of cycles that this frame consumed, using MDFNGI::MasterClock as a time base. // Set by emulation code. int64 MasterCycles; - int64 MasterCyclesALMS; // MasterCycles value at last MidSync(), 0 - // if mid sync isn't implemented for the emulation module in use. } EmulateSpecStruct; #define MDFN_MASTERCLOCK_FIXED(n) ((int64)((double)(n) * (1LL << 32)))