mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
24 lines
349 B
C++
24 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
|