diff options
author | Alexander Tkachev | 2016-07-09 17:06:50 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 36b0069e95a5eb6816e75bb9cf4aae56c7b5b258 (patch) | |
tree | 11b28b389669119f6ee955b1695ada1729f73761 /backends/networking/sdl_net/handlers/resourcehandler.cpp | |
parent | f1830645d067379d9b0a96d71220ced59287e622 (diff) | |
download | scummvm-rg350-36b0069e95a5eb6816e75bb9cf4aae56c7b5b258.tar.gz scummvm-rg350-36b0069e95a5eb6816e75bb9cf4aae56c7b5b258.tar.bz2 scummvm-rg350-36b0069e95a5eb6816e75bb9cf4aae56c7b5b258.zip |
CLOUD: Cleanup in Handlers
Simplified some stuff here and there by using HandlerUtils static
methods.
Diffstat (limited to 'backends/networking/sdl_net/handlers/resourcehandler.cpp')
-rw-r--r-- | backends/networking/sdl_net/handlers/resourcehandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/networking/sdl_net/handlers/resourcehandler.cpp b/backends/networking/sdl_net/handlers/resourcehandler.cpp index 160f78fedb..1205c4aa7d 100644 --- a/backends/networking/sdl_net/handlers/resourcehandler.cpp +++ b/backends/networking/sdl_net/handlers/resourcehandler.cpp @@ -21,6 +21,7 @@ */ #include "backends/networking/sdl_net/handlers/resourcehandler.h" +#include "backends/networking/sdl_net/handlerutils.h" #include "backends/networking/sdl_net/localwebserver.h" namespace Networking { @@ -37,7 +38,7 @@ void ResourceHandler::handle(Client &client) { if (filename.size() && filename[0] == '.') return; // if file not found, don't set handler either - Common::SeekableReadStream *file = getArchiveFile(filename); + Common::SeekableReadStream *file = HandlerUtils::getArchiveFile(filename); if (file == nullptr) return; LocalWebserver::setClientGetHandler(client, file, 200, LocalWebserver::determineMimeType(filename)); |