REDRIVER2/src_rebuild/EMULATOR/LIBETC.C
Ilya Shurumov b4a840b5b6 - GTE inline.c macros rewrites
- update Ghidra DB
2020-04-15 18:26:31 +06:00

63 lines
761 B
C

#include "LIBETC.H"
#include "EMULATOR_PRIVATE.H"
#include "EMULATOR.H"
#if defined(_WINDOWS)
#include <d3d9.h>
#endif
#include <SDL_timer.h>
void(*vsync_callback)(void) = NULL;
int StopCallback(void)
{
UNIMPLEMENTED();
return 0;
}
int ResetCallback(void)
{
vsync_callback = NULL;
return 0;
}
extern unsigned int g_swapTime;
int VSync(int mode)
{
if (mode < 0)
return SDL_GetTicks() - g_swapTime;
if (mode == 0)
{
if (vsync_callback != NULL)
vsync_callback();
Emulator_WaitForTimestep(1);
}
else if (mode > 0)
{
}
return SDL_GetTicks();
}
int VSyncCallback(void(*f)(void))
{
vsync_callback = f;
return 0;
}
long GetVideoMode(void)
{
return MODE_NTSC;
}
long SetVideoMode(long mode)
{
UNIMPLEMENTED();
return MODE_NTSC;
}