added a new function to ILibrarySys
added define in SDK for LIBRARYSYS --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401198
This commit is contained in:
+1
-1
@@ -200,7 +200,7 @@ bool SM_ExecuteConfig(CPlugin *pl, AutoConfig *cfg, bool can_create)
|
||||
sizeof(build)-len,
|
||||
"/%s",
|
||||
cur_ptr);
|
||||
if (!g_LibSys.CreateDirectory(build))
|
||||
if (!g_LibSys.CreateFolder(build))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@ const char *LibrarySystem::GetFileExtension(const char *filename)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool LibrarySystem::CreateDirectory(const char *path)
|
||||
bool LibrarySystem::CreateFolder(const char *path)
|
||||
{
|
||||
#if defined PLATFORM_WINDOWS
|
||||
return (mkdir(path) != -1);
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
void GetPlatformError(char *error, size_t maxlength);
|
||||
size_t PathFormat(char *buffer, size_t len, const char *fmt, ...);
|
||||
const char *GetFileExtension(const char *filename);
|
||||
bool CreateDirectory(const char *path);
|
||||
bool CreateFolder(const char *path);
|
||||
size_t GetFileFromPath(char *buffer, size_t maxlength, const char *path);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user