AronaCore/core/export.cpp
2024-03-08 17:54:14 +08:00

23 lines
373 B
C++

#include "export.h"
#include "application/application.h"
core_handle::core_handle() : app_(nullptr) {
}
void core_handle::init_core(const char* runtime_dir) {
delete app_;
app_ = new application();
app_->init(runtime_dir);
}
void core_handle::release_core() {
if (app_) {
app_->shutdown();
delete app_;
app_ = nullptr;
}
}