Переименовывание в LuaVox

This commit is contained in:
2025-02-05 09:54:09 +06:00
parent fbf0727d18
commit cef88fc199
29 changed files with 52 additions and 42 deletions

View File

@@ -7,8 +7,11 @@
#include "Client/ServerSession.hpp"
#include "Common/Net.hpp"
#include "Server/GameServer.hpp"
#include <Client/Vulkan/Vulkan.hpp>
namespace AL {
namespace LV {
using namespace TOS;
coro<> runClient(asio::io_context &ioc, uint16_t port) {
try {
@@ -22,13 +25,15 @@ coro<> runClient(asio::io_context &ioc, uint16_t port) {
int main() {
// VK::Vulkan VkInst;
// VkInst.getSettingsNext() = VkInst.getBestSettings();
// VkInst.reInit();
VK::Vulkan VkInst;
VkInst.getSettingsNext() = VkInst.getBestSettings();
VkInst.reInit();
// VkInst.start([&](VK::Vulkan *instance, int subpass, VkCommandBuffer &renderCmd)
// {
// });
auto ot = std::async([&](){
VkInst.start([&](VK::Vulkan *instance, int subpass, VkCommandBuffer &renderCmd)
{
});
});
// LuaVox
@@ -46,6 +51,7 @@ int main() {
asio::co_spawn(ioc, runClient(ioc, server.getPort()), asio::detached);
ioc.run();
VkInst.shutdown();
return 0;
}
@@ -57,5 +63,5 @@ int main() {
TOS::Logger::addLogOutput(".*", TOS::EnumLogType::All);
std::cout << "Hello world!" << std::endl;
return AL::main();
return LV::main();
}