mirror-chatterino2/src/singletons/Resources.cpp

25 lines
349 B
C++
Raw Normal View History

2018-07-15 14:03:41 +02:00
#include "singletons/Resources.hpp"
2019-09-22 10:53:39 +02:00
#include "debug/AssertInGuiThread.hpp"
namespace chatterino {
namespace {
static Resources2 *resources = nullptr;
}
Resources2 &getResources()
{
assert(resources);
return *resources;
}
void initResources()
{
assertInGuiThread();
resources = new Resources2;
}
} // namespace chatterino