UICommon/ResourcePack/Manager: Make GetPackConfig() internally linked

Silences a -Wmissing-declarations warning.
This commit is contained in:
Lioncash 2019-06-07 20:20:09 -04:00
parent 7842bd1179
commit eb15a52fd5
1 changed files with 6 additions and 7 deletions

View File

@ -11,15 +11,13 @@
#include <algorithm> #include <algorithm>
namespace
{
std::vector<ResourcePack::ResourcePack> packs;
std::string packs_path;
} // namespace
namespace ResourcePack namespace ResourcePack
{ {
namespace
{
std::vector<ResourcePack> packs;
std::string packs_path;
IniFile GetPackConfig() IniFile GetPackConfig()
{ {
packs_path = File::GetUserPath(D_RESOURCEPACK_IDX) + "/Packs.ini"; packs_path = File::GetUserPath(D_RESOURCEPACK_IDX) + "/Packs.ini";
@ -29,6 +27,7 @@ IniFile GetPackConfig()
return file; return file;
} }
} // Anonymous namespace
bool Init() bool Init()
{ {