1
0
Files
BasaltMeter/BasaltPresenter/Presenter/main.cpp
2026-01-08 19:37:25 +08:00

33 lines
1.0 KiB
C++

#include "dll_loader.hpp"
#include "cmd_client.hpp"
#include <basalt/char_types.hpp>
namespace dll_loader = ::basalt::presenter::dll_loader;
using dll_loader::DllKind;
using dll_loader::DllLoader;
using ::basalt::presenter::cmd_client::CmdClient;
int main(int argc, char* argv[]) {
auto engine_dll = DllLoader(DllKind::Engine, BSTEXT("BasaltDirectX11Engine"));
auto deliver_dll = DllLoader(DllKind::Deliver, BSTEXT("BasaltPipeDeliver"));
auto client = CmdClient();
auto payload = client.wait_handshake();
//auto* engine = engine_dll.CreateInstance<Kernel::IEngine>();
//auto* deliver = deliver_dll.CreateInstance<Kernel::IDeliver>();
//Kernel::EngineConfig engine_config{.headless = false, .title = BSTEXT("Fuck You"), .width = payload.width, .height = payload.height};
//engine->startup(std::move(engine_config));
while (true) {
auto req_stop = false; //engine->tick();
auto can_stop = client.tick(req_stop);
if (can_stop) break;
}
//engine->shutdown();
//engine_dll.DestroyInstance(engine);
}