From c30ddccd3eea1155de980c0b940fdf5bee633dce Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 15 Dec 2014 17:21:25 +0100 Subject: [PATCH] set_basename - move comments inside ifdef --- retroarch.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/retroarch.c b/retroarch.c index fb8f07e85f..84b18504d3 100644 --- a/retroarch.c +++ b/retroarch.c @@ -531,6 +531,8 @@ static void set_basename(const char *path) strlcpy(g_extern.fullpath, path, sizeof(g_extern.fullpath)); strlcpy(g_extern.basename, path, sizeof(g_extern.basename)); + +#ifdef HAVE_COMPRESSION /* Removing extension is a bit tricky for compressed files. * Basename means: * /file/to/path/game.extension should be: @@ -538,7 +540,7 @@ static void set_basename(const char *path) * * Two things to consider here are: /file/to/path/ is expected * to be a directory and "game" is a single file. This is used for - * states and srm default paths + * states and srm default paths. * * For compressed files we have: * @@ -546,13 +548,12 @@ static void set_basename(const char *path) * /file/to/path/comp.7z#folder/game.extension * * The choice I take here is: - * /file/to/path/game as basename. We might end up in a writable dir then - * and the name of srm and states are meaningful. + * /file/to/path/game as basename. We might end up in a writable + * directory then and the name of srm and states are meaningful. * */ -#ifdef HAVE_COMPRESSION path_basedir(g_extern.basename); - fill_pathname_dir(g_extern.basename,path,"",sizeof(g_extern.basename)); + fill_pathname_dir(g_extern.basename, path, "", sizeof(g_extern.basename)); #endif if ((dst = strrchr(g_extern.basename, '.')))