1 | // Aseprite |
2 | // Copyright (C) 2019 Igara Studio S.A. |
3 | // Copyright (C) 2001-2017 David Capello |
4 | // |
5 | // This program is distributed under the terms of |
6 | // the End-User License Agreement for Aseprite. |
7 | |
8 | #ifndef APP_RES_PALETTES_LOADER_DELEGATE_H_INCLUDED |
9 | #define APP_RES_PALETTES_LOADER_DELEGATE_H_INCLUDED |
10 | #pragma once |
11 | |
12 | #include "app/file/file_op_config.h" |
13 | #include "app/res/resources_loader_delegate.h" |
14 | |
15 | namespace app { |
16 | |
17 | class PalettesLoaderDelegate : public ResourcesLoaderDelegate { |
18 | public: |
19 | PalettesLoaderDelegate(); |
20 | |
21 | // ResourcesLoaderDelegate impl |
22 | virtual void getResourcesPaths(std::map<std::string, std::string>& idAndPath) const override; |
23 | virtual Resource* loadResource(const std::string& id, |
24 | const std::string& path) override; |
25 | |
26 | private: |
27 | FileOpConfig m_config; |
28 | }; |
29 | |
30 | } // namespace app |
31 | |
32 | #endif |
33 | |