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

This commit is contained in:
Admiral H. Curtiss 2022-03-18 06:47:01 +01:00
commit efbf5a450b
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
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);