Skip to content
Permalink
Browse files

UICommon/ResourcePack: Fix resource packs without manifests being abl…

…e to crash dolphin
  • Loading branch information...
spycrab committed Jan 2, 2019
1 parent aac17bf commit c2c23677edeaeb935aa606625be86cc7da29bf5c
Showing with 8 additions and 1 deletion.
  1. +8 −1 Source/Core/UICommon/ResourcePack/Manager.cpp
@@ -54,7 +54,11 @@ bool Init()
{
const auto& path = pack_list[i];

error |= !Add(path);
if (!Add(path))
{
error = true;
continue;
}

order->Set(packs[i].GetManifest()->GetID(), static_cast<u64>(i));
}
@@ -107,6 +111,9 @@ bool Add(const std::string& path, int offset)

ResourcePack pack(path);

if (!pack.IsValid())
return false;

IniFile file = GetPackConfig();

auto* order = file.GetOrCreateSection("Order");

0 comments on commit c2c2367

Please sign in to comment.
You can’t perform that action at this time.