From e4beacd663d9db7d80bd8cbf1f8e8a3ed65b78cd Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 7 Oct 2013 15:25:09 +0200 Subject: [PATCH] (RARCH_CONSOLE) Some better comments for rarch_get_environment_console --- frontend/frontend.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/frontend.c b/frontend/frontend.c index 1b7a98998a..d0b7b5d5b9 100644 --- a/frontend/frontend.c +++ b/frontend/frontend.c @@ -56,12 +56,13 @@ static void rarch_get_environment_console(void) if (path_file_exists(old_path)) { - // Rename core filename executable to a more sane name. + // Rename core filename executable (old_path) to a more sane name (new_path). - /* If new_path already exists, we are upgrading the core - - * delete existing file first. */ if (path_file_exists(new_path)) { + /* If new_path already exists, we are upgrading the core - + * delete existing file first. */ + if (remove(new_path) < 0) RARCH_ERR("Failed to remove file: %s.\n", new_path); else