mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Reuse code
This commit is contained in:
parent
08f26fafbd
commit
3f8b1d04ed
@ -218,8 +218,7 @@ void fill_pathname(char *out_path, const char *in_path,
|
|||||||
if ((tok = (char*)strrchr(path_basename(tmp_path), '.')))
|
if ((tok = (char*)strrchr(path_basename(tmp_path), '.')))
|
||||||
*tok = '\0';
|
*tok = '\0';
|
||||||
|
|
||||||
retro_assert(strlcpy(out_path, tmp_path, size) < size);
|
fill_pathname_noext(out_path, tmp_path, replace, size);
|
||||||
retro_assert(strlcat(out_path, replace, size) < size);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -559,8 +558,7 @@ void fill_pathname_resolve_relative(char *out_path,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
retro_assert(strlcpy(out_path, in_refpath, size) < size);
|
fill_pathname_basedir(out_path, in_refpath, size);
|
||||||
path_basedir(out_path);
|
|
||||||
retro_assert(strlcat(out_path, in_path, size) < size);
|
retro_assert(strlcat(out_path, in_path, size) < size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user