mirror of
https://github.com/Relintai/sfw.git
synced 2024-11-08 07:52:09 +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;
|