Migrate core infrastructure to VoidLibrary

This commit is contained in:
faumaray committed 2026-06-22 15:53:23 +03:00
1 parent 53801f2b53
commit 2bdb63766d
65 files changed
+16109 -12011

No files matched your search

+10 -14
View File
@@ -1,23 +1,19 @@
#include "echoion/api/Export.hpp"
#include <Export.hpp>
#include "echoion/core/Core.hpp"
#include <memory>
namespace Echoion::Api {
namespace Echoion::Api
{
CoreInterfacePtr CreateCore() {
return std::make_shared<Core::Core>();
}
CoreInterfacePtr CreateCore() { return std::make_shared<Core::Core>(); }
void DestroyCore(ICoreInterface* core) {
delete core;
}
void DestroyCore(ICoreInterface* core) { delete core; }
const char* GetApiVersion() {
return VERSION_STRING;
}
const char* GetApiVersion() { return VERSION_STRING; }
bool IsApiCompatible(uint32_t major, uint32_t minor) {
return major == VERSION_MAJOR && minor <= VERSION_MINOR;
}
bool IsApiCompatible(uint32_t major, uint32_t minor)
{
return major == VERSION_MAJOR && minor <= VERSION_MINOR;
}
} // namespace Echoion::Api