Skip to content

Commit bea5621

Browse files
committed
Resync
1 parent 8d23dd7 commit bea5621

4 files changed

Lines changed: 4 additions & 41 deletions

File tree

file/file_path.c

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ void fill_pathname_basedir(char *out_dir,
403403
{
404404
if (out_dir != in_path)
405405
strlcpy(out_dir, in_path, size);
406-
path_basedir_size(out_dir, size);
406+
path_basedir(out_dir);
407407
}
408408

409409
void fill_pathname_basedir_noext(char *out_dir,
@@ -554,32 +554,6 @@ void path_basedir(char *path)
554554
snprintf(path, 3, "." PATH_DEFAULT_SLASH());
555555
}
556556

557-
/**
558-
* path_basedir_size:
559-
* @path : path
560-
* @size : size of path
561-
*
562-
* Extracts base directory by mutating path.
563-
* Keeps trailing '/'.
564-
*
565-
* Specialized function that avoids the implicit
566-
* strlen call
567-
**/
568-
void path_basedir_size(char *path, size_t size)
569-
{
570-
char *last = NULL;
571-
572-
if (size < 2)
573-
return;
574-
575-
last = find_last_slash(path);
576-
577-
if (last)
578-
last[1] = '\0';
579-
else
580-
snprintf(path, 3, "." PATH_DEFAULT_SLASH());
581-
}
582-
583557
/**
584558
* path_parent_dir:
585559
* @path : path

file/nbio/nbio_intf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ extern nbio_intf_t nbio_orbis;
3737
#endif
3838
extern nbio_intf_t nbio_stdio;
3939

40+
#ifndef _XBOX
4041
#if defined(_WIN32)
4142
#if defined(_MSC_VER) && _MSC_VER >= 1500
4243

@@ -50,6 +51,7 @@ extern nbio_intf_t nbio_stdio;
5051
#define HAVE_MMAP_WIN32
5152
#endif
5253
#endif
54+
#endif
5355

5456
#endif
5557

formats/m3u/m3u_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ bool m3u_file_save(
497497
if (find_last_slash(m3u_file->path))
498498
{
499499
strlcpy(base_dir, m3u_file->path, sizeof(base_dir));
500-
path_basedir_size(base_dir, STRLEN_CONST(base_dir));
500+
path_basedir(base_dir);
501501
}
502502

503503
/* Open file for writing */

include/file/file_path.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,6 @@ const char *path_basename(const char *path);
135135
**/
136136
void path_basedir(char *path);
137137

138-
/**
139-
* path_basedir_size:
140-
* @path : path
141-
* @size : size of path
142-
*
143-
* Extracts base directory by mutating path.
144-
* Keeps trailing '/'.
145-
*
146-
* Specialized function that avoids the implicit
147-
* strlen call
148-
**/
149-
void path_basedir_size(char *path, size_t size);
150-
151138
/**
152139
* path_parent_dir:
153140
* @path : path

0 commit comments

Comments
 (0)