diff options
Diffstat (limited to 'Editor/Win')
-rw-r--r-- | Editor/Win/Win.cpp | 18 | ||||
-rw-r--r-- | Editor/Win/Win.h | 14 |
2 files changed, 32 insertions, 0 deletions
diff --git a/Editor/Win/Win.cpp b/Editor/Win/Win.cpp new file mode 100644 index 0000000..f6310e2 --- /dev/null +++ b/Editor/Win/Win.cpp @@ -0,0 +1,18 @@ +#include "win.h" + +namespace Win +{ + + std::string GetCurrentWorkingDirectory() + { + char path[MAX_PATH]; + GetCurrentDirectory(MAX_PATH, path); + return path; + } + + void SetDllSearchDirectory(std::string path) + { + SetDllDirectory(path.c_str()); + } + +}
\ No newline at end of file diff --git a/Editor/Win/Win.h b/Editor/Win/Win.h new file mode 100644 index 0000000..cbbba4c --- /dev/null +++ b/Editor/Win/Win.h @@ -0,0 +1,14 @@ +#pragma once + +#include <windows.h> +#include <string> + +// windows ¸¨Öúº¯Êý + +namespace Win +{ + + std::string GetCurrentWorkingDirectory(); + void SetDllSearchDirectory(std::string path); + +} |