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:
parent
7de589e275
commit
ab752e1156
5 changed files with 47 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue