diff options
Diffstat (limited to 'Swiften/Application/WindowsApplicationPathProvider.cpp')
-rw-r--r-- | Swiften/Application/WindowsApplicationPathProvider.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Swiften/Application/WindowsApplicationPathProvider.cpp b/Swiften/Application/WindowsApplicationPathProvider.cpp deleted file mode 100644 index e02da1e..0000000 --- a/Swiften/Application/WindowsApplicationPathProvider.cpp +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2010 Remko Tronçon - * Licensed under the GNU General Public License v3. - * See Documentation/Licenses/GPLv3.txt for more information. - */ - -#include "Swiften/Application/WindowsApplicationPathProvider.h" - -#include <windows.h> - -#include "Swiften/Base/ByteArray.h" - -namespace Swift { - -WindowsApplicationPathProvider::WindowsApplicationPathProvider(const String& name) : ApplicationPathProvider(name) { - resourceDirs.push_back(getExecutableDir()); - resourceDirs.push_back(getExecutableDir() / "../resources"); // Development -} - -boost::filesystem::path WindowsApplicationPathProvider::getExecutableDir() const { - ByteArray data; - data.resize(2048); - GetModuleFileName(NULL, data.getData(), data.getSize()); - return boost::filesystem::path(data.toString().getUTF8Data()).parent_path(); -} - -} |