(PS3) frontend_ps3_process_args - properly sets verbosity back to original verbosity

before returning
This commit is contained in:
twinaphex 2014-05-31 18:43:49 +02:00
parent ef7e3c91de
commit 327be0af85

View File

@ -326,20 +326,22 @@ static void frontend_ps3_init(void *data)
static int frontend_ps3_process_args(int argc, char *argv[], void *args) static int frontend_ps3_process_args(int argc, char *argv[], void *args)
{ {
#ifndef IS_SALAMANDER #ifndef IS_SALAMANDER
int ret;
bool original_verbose = g_extern.verbose; bool original_verbose = g_extern.verbose;
g_extern.verbose = true; g_extern.verbose = true;
ret = 0;
if (argc > 1) if (argc > 1)
{ {
RARCH_LOG("Auto-start game %s.\n", argv[1]); RARCH_LOG("Auto-start game %s.\n", argv[1]);
strlcpy(g_extern.fullpath, argv[1], sizeof(g_extern.fullpath)); strlcpy(g_extern.fullpath, argv[1], sizeof(g_extern.fullpath));
return 1; ret = 1;
} }
g_extern.verbose = original_verbose; g_extern.verbose = original_verbose;
#endif #endif
return 0; return ret;
} }
static void frontend_ps3_deinit(void *data) static void frontend_ps3_deinit(void *data)