diff options
| author | Tannin <devnull@localhost> | 2015-01-22 19:38:14 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-01-22 19:38:14 +0100 |
| commit | af1e3d0187930c565c23e32652ab03dc11a8b0e8 (patch) | |
| tree | 5cef4e2784bee65645090ff7aa7e551fd0eaab2b /src | |
| parent | 9ab9c072fc8aeb5417392f24d2285d717b6c2b01 (diff) | |
removed some obsolete code
Diffstat (limited to 'src')
| -rw-r--r-- | src/helper.cpp | 23 | ||||
| -rw-r--r-- | src/helper.h | 9 |
2 files changed, 1 insertions, 31 deletions
diff --git a/src/helper.cpp b/src/helper.cpp index d0825d10..bec5d51e 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];
diff --git a/src/helper.h b/src/helper.h index 0144c39f..36f10db1 100644 --- a/src/helper.h +++ b/src/helper.h @@ -44,15 +44,6 @@ namespace Helper { bool init(const std::wstring &moDirectory);
/**
- * @brief set or unset the current instance of ModOrganizer as the global handler for nxm links
- *
- * @param moDirectory absolute path to the modOrganizer base directory
- * @param enable if true, ModOrganizer will become the handler for nxm links. If false, the nxm handler will be unset
- * @return true on success
- **/
-bool setNXMHandler(const std::wstring &moDirectory, bool enable);
-
-/**
* @brief sets the last modified time for all .bsa-files in the target directory well into the past
* @param moDirectory absolute path to the modOrganizer base directory
* @param dataPath the path taht contains the .bsa-files, usually the data directory of the game
|
