mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +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)
|
||||
{
|
||||
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[] = {
|
||||
RETRO_DEVICE_ID_JOYPAD_UP,
|
||||
RETRO_DEVICE_ID_JOYPAD_DOWN,
|
||||
@ -113,6 +105,13 @@ static int menu_start_screen_iterate(unsigned action)
|
||||
RARCH_QUIT_KEY,
|
||||
};
|
||||
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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user