From 8446078851f5430e8315d6618d8d5dd9d6e3d1ab Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 19 Oct 2021 02:21:47 +0800 Subject: +LuaPanda --- Editor/Win/Win.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Editor/Win/Win.cpp (limited to 'Editor/Win/Win.cpp') 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 -- cgit v1.1-26-g67d0