mirror of
https://github.com/joel16/3DSident.git
synced 2024-11-23 03:29:45 +00:00
Remove unused FS_RecursiveMakeDir()
This commit is contained in:
parent
2dcd466f97
commit
5c6c123364
32
common/fs.c
32
common/fs.c
@ -37,37 +37,7 @@ Result FS_MakeDir(FS_Archive archive, const char *path)
|
||||
return 0;
|
||||
}
|
||||
|
||||
Result FS_RecursiveMakeDir(FS_Archive archive, const char * dir)
|
||||
{
|
||||
Result ret = 0;
|
||||
char buf[256];
|
||||
char *p = NULL;
|
||||
size_t len;
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s",dir);
|
||||
len = strlen(buf);
|
||||
|
||||
if (buf[len - 1] == '/')
|
||||
buf[len - 1] = 0;
|
||||
|
||||
for (p = buf + 1; *p; p++)
|
||||
{
|
||||
if (*p == '/')
|
||||
{
|
||||
*p = 0;
|
||||
|
||||
ret = FS_MakeDir(archive, buf);
|
||||
|
||||
*p = '/';
|
||||
}
|
||||
|
||||
ret = FS_MakeDir(archive, buf);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool FS_FileExists(FS_Archive archive, const char * path)
|
||||
bool FS_FileExists(FS_Archive archive, const char *path)
|
||||
{
|
||||
Handle handle;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user