From e17e5aa9603315a67efa82a65750319219b2a80b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 17 Feb 2014 15:14:48 +0100 Subject: [PATCH] (PSP) Cleanup psp_process_args --- frontend/platform/platform_psp.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/frontend/platform/platform_psp.c b/frontend/platform/platform_psp.c index 7e324834e1..9386f57dea 100644 --- a/frontend/platform/platform_psp.c +++ b/frontend/platform/platform_psp.c @@ -108,20 +108,13 @@ static void system_deinit(void *data) static int psp_process_args(int argc, char *argv[], void *args) { (void)argc; - (void)argv; (void)args; -#if 0 - char path[256]; - snprintf(path, sizeof(path), "%s%s", default_paths.port_dir, "zelda.gb"); - - strlcpy(g_extern.fullpath, path, sizeof(g_extern.fullpath)); - g_extern.lifecycle_state |= (1ULL << MODE_LOAD_GAME); -#else - if (argv[1]&&(argv[1][0])){ + + if (argv[1] && (argv[1][0])) + { strlcpy(g_extern.fullpath, argv[1], sizeof(g_extern.fullpath)); g_extern.lifecycle_state |= (1ULL << MODE_LOAD_GAME); } -#endif } const frontend_ctx_driver_t frontend_ctx_psp = { @@ -131,7 +124,7 @@ const frontend_ctx_driver_t frontend_ctx_psp = { NULL, /* exitspawn */ psp_process_args, /* process_args */ NULL, /* process_events */ - NULL, /* exec */ + NULL, /* exec */ NULL, /* shutdown */ "psp", };