2018-11-17 15:36:28 +00:00
|
|
|
// Copyright 2018 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-11-17 15:36:28 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "UICommon/ResourcePack/ResourcePack.h"
|
|
|
|
|
|
|
|
namespace ResourcePack
|
|
|
|
{
|
|
|
|
bool Init();
|
|
|
|
|
2022-03-18 05:47:01 +00:00
|
|
|
ResourcePack* Add(const std::string& path, int offset = -1);
|
2018-11-17 15:36:28 +00:00
|
|
|
bool Remove(ResourcePack& pack);
|
|
|
|
void SetInstalled(const ResourcePack& pack, bool installed);
|
|
|
|
bool IsInstalled(const ResourcePack& pack);
|
|
|
|
|
|
|
|
std::vector<ResourcePack>& GetPacks();
|
|
|
|
|
2023-06-16 14:19:38 +00:00
|
|
|
std::vector<ResourcePack*> GetHigherPriorityPacks(const ResourcePack& pack);
|
|
|
|
std::vector<ResourcePack*> GetLowerPriorityPacks(const ResourcePack& pack);
|
2018-11-17 15:36:28 +00:00
|
|
|
} // namespace ResourcePack
|