More config.c clean-ups and added some plumbing for the future ZIP and MO image history.
This commit is contained in:
@@ -304,6 +304,18 @@ path_slash(char *path)
|
||||
path_normalize(path);
|
||||
}
|
||||
|
||||
char *
|
||||
path_get_slash(char *path)
|
||||
{
|
||||
auto len = strlen(path);
|
||||
std::string ret = "";
|
||||
|
||||
if (path[len - 1] != '/')
|
||||
ret = "/";
|
||||
|
||||
return (char *) ret.c_str();
|
||||
}
|
||||
|
||||
void
|
||||
path_append_filename(char *dest, const char *s1, const char *s2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user