working directory fix

This commit is contained in:
Turanszki Janos
2020-07-11 21:13:24 +01:00
parent 4a109e8783
commit 3f66eea05e
2 changed files with 9 additions and 9 deletions
+8 -8
View File
@@ -14,6 +14,7 @@
#include <codecvt> // string conversion
#ifdef _WIN32
#include <direct.h>
#ifdef PLATFORM_UWP
#include <collection.h>
#include <ppltasks.h>
@@ -212,18 +213,17 @@ namespace wiHelper
return appDir;
}
#ifdef _WIN32
#include <direct.h>
static std::string workingdir = std::string(_getcwd(NULL, 0)) + "/";
#else
static std::string workingdir;
#endif // _WIN32
static std::string __originalWorkingDir = workingdir;
string GetOriginalWorkingDirectory()
{
return __originalWorkingDir;
#ifdef _WIN32
static std::string originalWorkingDir = std::string(_getcwd(NULL, 0)) + "/";
#else
static std::string originalWorkingDir;
#endif
return originalWorkingDir;
}
static std::string workingdir = GetOriginalWorkingDirectory();
string GetWorkingDirectory()
{
return workingdir;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates, breaking API changes
const int minor = 46;
// minor bug fixes, alterations, refactors, updates
const int revision = 4;
const int revision = 5;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);