Переименовывание в LuaVox
This commit is contained in:
22
Src/main.cpp
22
Src/main.cpp
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user