mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
initial libretro port
This commit is contained in:
parent
4c2e35547f
commit
2446536be5
10 changed files with 1537 additions and 32 deletions
|
@ -69,6 +69,8 @@ void Pico32xStartup(void)
|
|||
PREG8(Pico32xMem->sh2_peri_regs[0], 4) =
|
||||
PREG8(Pico32xMem->sh2_peri_regs[1], 4) = 0x84; // SCI SSR
|
||||
|
||||
rendstatus_old = -1;
|
||||
|
||||
emu_32x_startup();
|
||||
}
|
||||
|
||||
|
|
|
@ -220,6 +220,9 @@ void PicoLoopPrepare(void)
|
|||
// FIXME: PAL has 313 scanlines..
|
||||
scanlines_total = Pico.m.pal ? 312 : 262;
|
||||
|
||||
Pico.m.dirtyPal = 1;
|
||||
rendstatus_old = -1;
|
||||
|
||||
if (PicoAHW & PAHW_32X)
|
||||
p32x_timers_recalc();
|
||||
}
|
||||
|
|
|
@ -19,6 +19,9 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
// message log
|
||||
extern void lprintf(const char *fmt, ...);
|
||||
|
||||
// external funcs for Sega/Mega CD
|
||||
extern int mp3_get_bitrate(void *f, int size);
|
||||
extern void mp3_start_play(void *f, int pos);
|
||||
|
@ -27,7 +30,7 @@ extern void mp3_update(int *buffer, int length, int stereo);
|
|||
// this function should write-back d-cache and invalidate i-cache
|
||||
// on a mem region [start_addr, end_addr)
|
||||
// used by dynarecs
|
||||
extern void cache_flush_d_inval_i(const void *start_addr, const void *end_addr);
|
||||
extern void cache_flush_d_inval_i(void *start_addr, void *end_addr);
|
||||
|
||||
// attempt to alloc mem at specified address.
|
||||
// alloc anywhere else if that fails (callers should handle that)
|
||||
|
|
|
@ -800,7 +800,6 @@ static __inline int isspace_(int c)
|
|||
#define EL_ANOMALY 0x80000000 /* some unexpected conditions (during emulation) */
|
||||
|
||||
#if EL_LOGMASK
|
||||
extern void lprintf(const char *fmt, ...);
|
||||
#define elprintf(w,f,...) \
|
||||
{ \
|
||||
if ((w) & EL_LOGMASK) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue