1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-08-30 18:25:36 +00:00

replace CreateDirA() and mkdir() scattered everywhere by createDir() with some more error checking.

This commit is contained in:
fgenesis 2013-11-14 20:07:39 +01:00
commit ab752e1156
5 changed files with 47 additions and 27 deletions

View file

@ -22,16 +22,6 @@ using Network::NE_UPDATE;
ModDL moddl;
// TODO: move this to Base.cpp and replace other similar occurrances
static void createDir(const char *d)
{
#if defined(BBGE_BUILD_UNIX)
mkdir(d, S_IRWXU);
#elif defined(BBGE_BUILD_WINDOWS)
CreateDirectoryA(d, NULL);
#endif
}
// .../_mods/<MODNAME>
// .../_mods/<MODNAME>.zip
static std::string _PathToModName(const std::string& path)