diff options
| author | Tannin <devnull@localhost> | 2015-01-24 19:34:12 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-01-24 19:34:12 +0100 |
| commit | c3a95bdef1d989a54684b966e042b12bf682046d (patch) | |
| tree | 83a09ca9252b9d5a060acb415b8c3c0923cfe2c3 /src/helper.cpp | |
| parent | 9edc39633b82b5e02d33c4b0a395fe110af28eb4 (diff) | |
| parent | f756aede08edb315ebe5882098191ebfe971fd81 (diff) | |
Merge with branch1.2
Diffstat (limited to 'src/helper.cpp')
| -rw-r--r-- | src/helper.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/helper.cpp b/src/helper.cpp index f47a468a..4c22dbda 100644 --- a/src/helper.cpp +++ b/src/helper.cpp @@ -31,7 +31,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. namespace Helper {
-bool helperExec(LPCWSTR moDirectory, LPCWSTR commandLine)
+static bool helperExec(LPCWSTR moDirectory, LPCWSTR commandLine)
{
wchar_t fileName[MAX_PATH];
_snwprintf(fileName, MAX_PATH, L"%ls\\helper.exe", moDirectory);
@@ -81,27 +81,6 @@ bool init(const std::wstring &moDirectory) }
-bool setNXMHandler(const std::wstring &moDirectory, bool enable)
-{
- DWORD userNameLen = UNLEN + 1;
- wchar_t userName[UNLEN + 1];
-
- if (!GetUserName(userName, &userNameLen)) {
- reportError(QObject::tr("failed to determine account name"));
- return false;
- }
-
- wchar_t *commandLine = new wchar_t[32768];
- _snwprintf(commandLine, 32768, L"handleNXM \"%ls\" %d",
- moDirectory.c_str(), enable ? 1 : 0);
-
- bool res = helperExec(moDirectory.c_str(), commandLine);
- delete [] commandLine;
-
- return res;
-}
-
-
bool backdateBSAs(const std::wstring &moDirectory, const std::wstring &dataPath)
{
wchar_t *commandLine = new wchar_t[32768];
|
