mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 16:39:43 +00:00
Style nits
This commit is contained in:
parent
c38ed7f843
commit
31fc95a6cf
10
paths.c
10
paths.c
@ -94,7 +94,7 @@ void path_set_redirect(void)
|
||||
|
||||
/* If path doesn't exist, try to create it,
|
||||
* if everything fails revert to the original path. */
|
||||
if(!path_is_directory(new_savefile_dir))
|
||||
if (!path_is_directory(new_savefile_dir))
|
||||
{
|
||||
if (!path_mkdir(new_savefile_dir))
|
||||
{
|
||||
@ -119,7 +119,7 @@ void path_set_redirect(void)
|
||||
|
||||
/* If path doesn't exist, try to create it.
|
||||
* If everything fails, revert to the original path. */
|
||||
if(!path_is_directory(new_savestate_dir))
|
||||
if (!path_is_directory(new_savestate_dir))
|
||||
{
|
||||
if (!path_mkdir(new_savestate_dir))
|
||||
{
|
||||
@ -153,11 +153,11 @@ void path_set_redirect(void)
|
||||
|
||||
if (global)
|
||||
{
|
||||
if(path_is_directory(new_savefile_dir))
|
||||
if (path_is_directory(new_savefile_dir))
|
||||
strlcpy(global->name.savefile, new_savefile_dir,
|
||||
sizeof(global->name.savefile));
|
||||
|
||||
if(path_is_directory(new_savestate_dir))
|
||||
if (path_is_directory(new_savestate_dir))
|
||||
strlcpy(global->name.savestate, new_savestate_dir,
|
||||
sizeof(global->name.savestate));
|
||||
|
||||
@ -275,7 +275,7 @@ void path_set_special(char **argv, unsigned num_content)
|
||||
* It is more complicated for special content types. */
|
||||
if (global)
|
||||
{
|
||||
if(path_is_directory(dir_get(RARCH_DIR_CURRENT_SAVESTATE)))
|
||||
if (path_is_directory(dir_get(RARCH_DIR_CURRENT_SAVESTATE)))
|
||||
strlcpy(global->name.savestate, dir_get(RARCH_DIR_CURRENT_SAVESTATE),
|
||||
sizeof(global->name.savestate));
|
||||
if (path_is_directory(global->name.savestate))
|
||||
|
@ -1877,7 +1877,7 @@ static void retroarch_validate_cpu_features(void)
|
||||
|
||||
static void retroarch_main_init_media(void)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
const char *fullpath = path_get(RARCH_PATH_CONTENT);
|
||||
bool builtin_imageviewer = false;
|
||||
bool builtin_mediaplayer = false;
|
||||
@ -1941,9 +1941,8 @@ static void retroarch_main_init_media(void)
|
||||
**/
|
||||
bool retroarch_main_init(int argc, char *argv[])
|
||||
{
|
||||
bool init_failed = false;
|
||||
bool init_failed = false;
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
#if defined(DEBUG) && defined(HAVE_DRMINGW)
|
||||
char log_file_name[128];
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user