/* * Copyright (C) 2012-2014 Arctium Emulation * Copyright (C) 2008-2017 TrinityCore * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef CONNECTION_PATCHER_HELPER_HPP #define CONNECTION_PATCHER_HELPER_HPP #include "Constants/BinaryTypes.hpp" #include "Patterns/Common.hpp" #include #include #include #include #include #include #include #include namespace Connection_Patcher { namespace Helper { void CopyDir(boost::filesystem::path const & source, boost::filesystem::path const & destination); void DownloadFile(const std::string& serverName, int port, const std::string& getCommand, std::ostream& out); Constants::BinaryTypes GetBinaryType(std::vector const& data); std::string GetFileChecksum(std::vector const& data); std::set SearchOffset(std::vector const& binary, std::vector const& pattern); uint32_t GetBuildNumber(std::vector const& binary); } } #endif