From 6c10d92e1f45ae4a518ae78d62db04784d441eb9 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Mon, 29 May 2023 19:44:57 +0200 Subject: [PATCH] Cleanups --- runloop.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/runloop.c b/runloop.c index e93f0f210b..b1c06cb1d8 100644 --- a/runloop.c +++ b/runloop.c @@ -7888,13 +7888,11 @@ void runloop_path_set_redirect(settings_t *settings, /* Append library_name to the savestate location */ if (sort_savestates_enable) - { fill_pathname_join( new_savestate_dir, new_savestate_dir, system->library_name, sizeof(new_savestate_dir)); - } /* If path doesn't exist, try to create it. * If everything fails, revert to the original path. */ @@ -7942,8 +7940,8 @@ void runloop_path_set_redirect(settings_t *settings, #ifdef HAVE_NETWORKING /* Special save directory for netplay clients. */ - if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL) && - !netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_SERVER, NULL)) + if ( netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL) + && !netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_SERVER, NULL)) { fill_pathname_join(new_savefile_dir, new_savefile_dir, ".netplay", sizeof(new_savefile_dir)); @@ -8072,7 +8070,7 @@ void runloop_path_set_special(char **argv, unsigned num_content) if (is_dir) { strlcpy(runloop_st->name.savestate, savestate_dir, - sizeof(runloop_st->name.savestate)); /* TODO/FIXME - why are we setting this string here but then later overwriting it later with fil_pathname_dir? */ + sizeof(runloop_st->name.savestate)); /* TODO/FIXME - why are we setting this string here but then later overwriting it later with fill_pathname_dir? */ strlcpy(runloop_st->name.replay, savestate_dir, sizeof(runloop_st->name.replay)); /* TODO/FIXME - as above */ }