diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-09 16:32:50 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-09 22:33:20 (GMT) |
commit | dc951ebf7e4ab6fce39f16687be1e93f8140b71f (patch) | |
tree | 4eee56d72b8773049522fbaff8d9fb1ee0a5c978 /Swiften/Application/WindowsApplicationPathProvider.cpp | |
parent | 64ab77e910579bce3fe99b107a82753a7f32d77c (diff) | |
download | swift-contrib-dc951ebf7e4ab6fce39f16687be1e93f8140b71f.zip swift-contrib-dc951ebf7e4ab6fce39f16687be1e93f8140b71f.tar.bz2 |
Moved Application from Swiften into SwifTools.
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(); -} - -} |