mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
25 lines
349 B
C++
25 lines
349 B
C++
#include "singletons/Resources.hpp"
|
|
|
|
#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
|