mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
menu_start_screen_iterate - move declaration of variables to top
This commit is contained in:
parent
92a18a4109
commit
4fb2f5f0d1
@ -95,14 +95,6 @@ static int menu_info_screen_iterate(unsigned action)
|
|||||||
static int menu_start_screen_iterate(unsigned action)
|
static int menu_start_screen_iterate(unsigned action)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
char msg[PATH_MAX_LENGTH];
|
|
||||||
|
|
||||||
if (!driver.menu)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (driver.video_data && driver.menu_ctx && driver.menu_ctx->render)
|
|
||||||
driver.menu_ctx->render();
|
|
||||||
|
|
||||||
static const unsigned binds[] = {
|
static const unsigned binds[] = {
|
||||||
RETRO_DEVICE_ID_JOYPAD_UP,
|
RETRO_DEVICE_ID_JOYPAD_UP,
|
||||||
RETRO_DEVICE_ID_JOYPAD_DOWN,
|
RETRO_DEVICE_ID_JOYPAD_DOWN,
|
||||||
@ -113,6 +105,13 @@ static int menu_start_screen_iterate(unsigned action)
|
|||||||
RARCH_QUIT_KEY,
|
RARCH_QUIT_KEY,
|
||||||
};
|
};
|
||||||
char desc[ARRAY_SIZE(binds)][64];
|
char desc[ARRAY_SIZE(binds)][64];
|
||||||
|
char msg[PATH_MAX_LENGTH];
|
||||||
|
|
||||||
|
if (!driver.menu)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if (driver.video_data && driver.menu_ctx && driver.menu_ctx->render)
|
||||||
|
driver.menu_ctx->render();
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(binds); i++)
|
for (i = 0; i < ARRAY_SIZE(binds); i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user