core, structural cleanup, fixes and improvements for type issues #2

This commit is contained in:
kub 2021-01-01 12:43:49 +01:00
parent 5ab80df952
commit f821bb7011
64 changed files with 140 additions and 150 deletions

View file

@ -96,10 +96,6 @@ int main(int argc, char *argv[])
emu_init();
#ifdef GPERF
ProfilerStart("gperf.out");
#endif
engineState = PGS_Menu;
if (argc > 1)
@ -142,7 +138,13 @@ int main(int argc, char *argv[])
/* vvv fallthrough */
case PGS_Running:
#ifdef GPERF
ProfilerStart("gperf.out");
#endif
emu_loop();
#ifdef GPERF
ProfilerStop();
#endif
break;
case PGS_Quit:
@ -155,9 +157,6 @@ int main(int argc, char *argv[])
}
endloop:
#ifdef GPERF
ProfilerStop();
#endif
emu_finish();
plat_finish();

View file

@ -55,15 +55,15 @@ static unsigned short fname2color(const char *fname)
return 0xffff;
}
#include "../libpicofe/menu.c"
#include <platform/libpicofe/menu.c>
static const char *men_dummy[] = { NULL };
/* platform specific options and handlers */
#if defined(__GP2X__)
#include "../gp2x/menu.c"
#include <platform/gp2x/menu.c>
#elif defined(PANDORA)
#include "../pandora/menu.c"
#include <platform/pandora/menu.c>
#else
#define MENU_OPTIONS_GFX
#define MENU_OPTIONS_ADV
@ -84,7 +84,7 @@ static void make_bg(int no_scale)
if (!no_scale && g_menuscreen_w / w >= 2 && g_menuscreen_h / h >= 2)
{
unsigned int t, *d = g_menubg_ptr;
u32 t, *d = g_menubg_ptr;
d += (g_menuscreen_h / 2 - h * 2 / 2)
* g_menuscreen_w / 2;
d += (g_menuscreen_w / 2 - w * 2 / 2) / 2;

View file

@ -33,7 +33,7 @@ static struct in_pdata in_sdl_platform_data = {
static int yuv_ry[32], yuv_gy[32], yuv_by[32];
static unsigned char yuv_u[32 * 2], yuv_v[32 * 2];
static unsigned char yuv_y[256];
static struct uyvy { unsigned int y:8; unsigned int vyu:24; } yuv_uyvy[65536];
static struct uyvy { uint32_t y:8; uint32_t vyu:24; } yuv_uyvy[65536];
void bgr_to_uyvy_init(void)
{