Manager.h 650 B

12345678910111213141516171819202122232425
  1. // Copyright 2018 Dolphin Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <string>
  5. #include <vector>
  6. #include "UICommon/ResourcePack/ResourcePack.h"
  7. namespace ResourcePack
  8. {
  9. bool Init();
  10. ResourcePack* Add(const std::string& path, int offset = -1);
  11. bool Remove(ResourcePack& pack);
  12. void SetInstalled(const ResourcePack& pack, bool installed);
  13. bool IsInstalled(const ResourcePack& pack);
  14. std::vector<ResourcePack>& GetPacks();
  15. std::vector<ResourcePack*> GetHigherPriorityPacks(const ResourcePack& pack);
  16. std::vector<ResourcePack*> GetLowerPriorityPacks(const ResourcePack& pack);
  17. } // namespace ResourcePack