X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ffilecache.cpp;h=c4de6cf8220bfc8f6db0e0323e44a0bba1bb3f30;hb=4e1f50035e860a00636ca5d804c267119df99601;hp=5ba8ef5cce6404debba6bfa6e93a397c76bfd3a2;hpb=f801e16b787f033cea4e473d69b54fe65248a439;p=dragonfireclient.git diff --git a/src/filecache.cpp b/src/filecache.cpp index 5ba8ef5cc..c4de6cf82 100644 --- a/src/filecache.cpp +++ b/src/filecache.cpp @@ -1,32 +1,35 @@ /* -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 "log.h" #include "filesys.h" -#include "utility.h" #include "hex.h" - +#include "sha1.h" #include #include +#include +#include +#include bool FileCache::loadByPath(const std::string &path, std::ostream &os) { @@ -34,7 +37,7 @@ bool FileCache::loadByPath(const std::string &path, std::ostream &os) if(!fis.good()){ verbosestream<<"FileCache: File not found in cache: " - <