mirror of
https://github.com/Relintai/sfw.git
synced 2024-12-20 21:06:49 +01:00
32 lines
407 B
C++
32 lines
407 B
C++
|
|
||
|
//--STRIP
|
||
|
#include "sfw_core.h"
|
||
|
|
||
|
#include "core/pool_vector.h"
|
||
|
#include "core/string_name.h"
|
||
|
//--STRIP
|
||
|
|
||
|
void SFWCore::setup() {
|
||
|
if (_initialized) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
_initialized = true;
|
||
|
|
||
|
StringName::setup();
|
||
|
MemoryPool::setup();
|
||
|
}
|
||
|
|
||
|
void SFWCore::cleanup() {
|
||
|
if (!_initialized) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
_initialized = false;
|
||
|
|
||
|
StringName::cleanup();
|
||
|
MemoryPool::cleanup();
|
||
|
}
|
||
|
|
||
|
bool SFWCore::_initialized = false;
|