ResourcePack: Avoid crashes on invalid packs during Init().

This commit is contained in:
Admiral H. Curtiss
2022-03-18 06:47:01 +01:00
parent 107a928452
commit efbf5a450b
2 changed files with 32 additions and 23 deletions

View File

@ -12,7 +12,7 @@ namespace ResourcePack
{
bool Init();
bool Add(const std::string& path, int offset = -1);
ResourcePack* Add(const std::string& path, int offset = -1);
bool Remove(ResourcePack& pack);
void SetInstalled(const ResourcePack& pack, bool installed);
bool IsInstalled(const ResourcePack& pack);