diff options
author | chai <chaifix@163.com> | 2021-10-19 02:21:47 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-19 02:21:47 +0800 |
commit | 8446078851f5430e8315d6618d8d5dd9d6e3d1ab (patch) | |
tree | ecbbd9ae71367eebf3a4e414373f92a3f0a2cd44 /Editor/Win/Win.cpp | |
parent | 45c05ac5610416e75a123995af649681d43adf7f (diff) |
+LuaPanda
Diffstat (limited to 'Editor/Win/Win.cpp')
-rw-r--r-- | Editor/Win/Win.cpp | 18 |
1 files changed, 18 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 |