RARCH_CMD_HISTORY_INIT - early return if g_extern.history is not NULL

This commit is contained in:
twinaphex 2014-08-02 20:09:42 +02:00
parent b6dc9fff03
commit 8178957c7b

View File

@ -3259,6 +3259,9 @@ void rarch_main_command(unsigned action)
#endif
break;
case RARCH_CMD_HISTORY_INIT:
if (g_extern.history)
return;
g_extern.history = content_history_init(g_settings.content_history_path, g_settings.game_history_size);
break;
case RARCH_CMD_HISTORY_DEINIT: