Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-14 21:07:10 +0000
committerStijn Buys <ingar@osirion.org>2008-05-14 21:07:10 +0000
commita185c11f2397c0296a4b62cc266b4fa00a63c1e2 (patch)
tree186da4cdee2d9cd46fb2415567da1c441c7431ef /src/sys/sys.cc
parent599adb817e19d9be3502e501dc904c7255cd616c (diff)
console, camera & interpolation
Diffstat (limited to 'src/sys/sys.cc')
-rw-r--r--src/sys/sys.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sys/sys.cc b/src/sys/sys.cc
index 4c3f38f..4cb820d 100644
--- a/src/sys/sys.cc
+++ b/src/sys/sys.cc
@@ -20,25 +20,25 @@
#endif
#include <stdlib.h>
+#include <string>
#include "sys/sys.h"
namespace sys {
-void mkdir(const char *path)
+void mkdir(std::string const &path)
{
#ifdef _WIN32
- mkdir(path);
+ string p(path);
+ for (size_t i = 0; i < p.lenght(); i++)
+ if (p[i] == '/') p[i] = '\\';
+ ::mkdir(p.cstr());
#else
- ::mkdir(path, 0777);
+
+ ::mkdir(path.c_str(), 0777);
#endif
}
-void mkdir(const std::string &path)
-{
- mkdir(path.c_str());
-}
-
void signal(int signum, signalfunc handler)
{
#ifndef _WIN32