X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ffilecache.cpp;h=3d1b302a8cc59e8a5c4cbe9eef2061fac8ba18f2;hb=a3441638c67c9a9f626d7542a53fef6340d42751;hp=28d6bbc80d6c29105073e0647a91717202242c4e;hpb=4bf5065a9cdaf55a6915e647e9b5de5281d6622f;p=minetest.git diff --git a/src/filecache.cpp b/src/filecache.cpp index 28d6bbc80..3d1b302a8 100644 --- a/src/filecache.cpp +++ b/src/filecache.cpp @@ -1,41 +1,40 @@ /* -Minetest-c55 -Copyright (C) 2010 celeron55, Perttu Ahola -Copyright (C) 2012 Jonathan Neuschäfer +Minetest +Copyright (C) 2013 celeron55, Perttu Ahola +Copyright (C) 2013 Jonathan Neuschäfer 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 2 of the License, or +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 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. +GNU Lesser General Public License for more details. -You should have received a copy of the GNU General Public License along +You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "filecache.h" -#include "clientserver.h" + +#include "network/networkprotocol.h" #include "log.h" #include "filesys.h" -#include "utility.h" -#include "hex.h" - #include #include +#include +#include -bool FileCache::loadByPath(const std::string &name, std::ostream &os, - const std::string &path) +bool FileCache::loadByPath(const std::string &path, std::ostream &os) { std::ifstream fis(path.c_str(), std::ios_base::binary); if(!fis.good()){ - infostream<<"FileCache: File not found in cache: " - <