From 85fd27284621d335dd76ee66da7349b19004adc1 Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 16 Oct 2010 18:33:54 +0200 Subject: added the possibility to create a new folder within the editor's save file dialog --- src/engine/shared/storage.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/engine/shared/storage.cpp') diff --git a/src/engine/shared/storage.cpp b/src/engine/shared/storage.cpp index cfe64e4b..46127700 100644 --- a/src/engine/shared/storage.cpp +++ b/src/engine/shared/storage.cpp @@ -300,6 +300,15 @@ public: return remove(GetPath(Type, pFilename, aBuffer, sizeof(aBuffer))); } + virtual bool CreateFolder(const char *pFoldername, int Type) + { + if(Type < 0 || Type >= m_NumPaths) + return false; + + char aBuffer[MAX_PATH_LENGTH]; + return fs_makedir(GetPath(Type, pFoldername, aBuffer, sizeof(aBuffer))); + } + static IStorage *Create(const char *pApplicationName, int NumArgs, const char **ppArguments) { CStorage *p = new CStorage(); -- cgit 1.4.1