diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-12-26 12:25:50 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-12-26 12:25:50 -0600 |
| commit | 20f8d8d96a5ebbdb17564ee7b0adb479772468a2 (patch) | |
| tree | b3e6236ca95accae8e6289bbb4eb3aa7446cdff1 /src/port/Engine.cpp | |
| parent | 8cac5edd4f7cb164e5805b2bceec078efb3a61f9 (diff) | |
Bump LUS and fixed breaking changes
Diffstat (limited to 'src/port/Engine.cpp')
| -rw-r--r-- | src/port/Engine.cpp | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index 66a6aab4..40f8d083 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -82,8 +82,11 @@ GameEngine::GameEngine() { } } + auto controlDeck = std::make_shared<LUS::ControlDeck>(); + auto window = std::make_shared<Fast::Fast3dWindow>(std::vector<std::shared_ptr<Ship::GuiWindow>>({})); + this->context = - Ship::Context::CreateInstance("Starship", "ship", "starship.cfg.json", OTRFiles, {}, 3, { 44100, 1024*2, 2480*2 }); + Ship::Context::CreateInstance("Starship", "ship", "starship.cfg.json", OTRFiles, {}, 3, { 44100, 1024*2, 2480*2 }, window, controlDeck); Ship::Context::GetInstance()->GetLogger()->set_level((spdlog::level::level_enum)CVarGetInteger("gDeveloperTools.LogLevel", 1)); Ship::Context::GetInstance()->GetLogger()->set_pattern("[%H:%M:%S.%e] [%s:%#] [%l] %v"); @@ -120,26 +123,26 @@ GameEngine::GameEngine() { loader->RegisterResourceFactory(std::make_shared<SF64::ResourceFactoryBinaryGenericArrayV0>(), RESOURCE_FORMAT_BINARY, "GenericArray", static_cast<uint32_t>(SF64::ResourceType::GenericArray), 0); - loader->RegisterResourceFactory(std::make_shared<LUS::ResourceFactoryBinaryTextureV0>(), RESOURCE_FORMAT_BINARY, - "Texture", static_cast<uint32_t>(LUS::ResourceType::Texture), 0); - loader->RegisterResourceFactory(std::make_shared<LUS::ResourceFactoryBinaryTextureV1>(), RESOURCE_FORMAT_BINARY, - "Texture", static_cast<uint32_t>(LUS::ResourceType::Texture), 1); - - loader->RegisterResourceFactory(std::make_shared<LUS::ResourceFactoryBinaryVertexV0>(), RESOURCE_FORMAT_BINARY, - "Vertex", static_cast<uint32_t>(LUS::ResourceType::Vertex), 0); - loader->RegisterResourceFactory(std::make_shared<LUS::ResourceFactoryXMLVertexV0>(), RESOURCE_FORMAT_XML, - "Vertex", static_cast<uint32_t>(LUS::ResourceType::Vertex), 0); - - loader->RegisterResourceFactory(std::make_shared<LUS::ResourceFactoryBinaryDisplayListV0>(), RESOURCE_FORMAT_BINARY, - "DisplayList", static_cast<uint32_t>(LUS::ResourceType::DisplayList), 0); - loader->RegisterResourceFactory(std::make_shared<LUS::ResourceFactoryXMLDisplayListV0>(), RESOURCE_FORMAT_XML, - "DisplayList", static_cast<uint32_t>(LUS::ResourceType::DisplayList), 0); - - loader->RegisterResourceFactory(std::make_shared<LUS::ResourceFactoryBinaryMatrixV0>(), RESOURCE_FORMAT_BINARY, - "Matrix", static_cast<uint32_t>(LUS::ResourceType::Matrix), 0); - - loader->RegisterResourceFactory(std::make_shared<LUS::ResourceFactoryBinaryBlobV0>(), RESOURCE_FORMAT_BINARY, - "Blob", static_cast<uint32_t>(LUS::ResourceType::Blob), 0); + loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryBinaryTextureV0>(), RESOURCE_FORMAT_BINARY, + "Texture", static_cast<uint32_t>(Fast::ResourceType::Texture), 0); + loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryBinaryTextureV1>(), RESOURCE_FORMAT_BINARY, + "Texture", static_cast<uint32_t>(Fast::ResourceType::Texture), 1); + + loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryBinaryVertexV0>(), RESOURCE_FORMAT_BINARY, + "Vertex", static_cast<uint32_t>(Fast::ResourceType::Vertex), 0); + loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryXMLVertexV0>(), RESOURCE_FORMAT_XML, + "Vertex", static_cast<uint32_t>(Fast::ResourceType::Vertex), 0); + + loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryBinaryDisplayListV0>(), RESOURCE_FORMAT_BINARY, + "DisplayList", static_cast<uint32_t>(Fast::ResourceType::DisplayList), 0); + loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryXMLDisplayListV0>(), RESOURCE_FORMAT_XML, + "DisplayList", static_cast<uint32_t>(Fast::ResourceType::DisplayList), 0); + + loader->RegisterResourceFactory(std::make_shared<Fast::ResourceFactoryBinaryMatrixV0>(), RESOURCE_FORMAT_BINARY, + "Matrix", static_cast<uint32_t>(Fast::ResourceType::Matrix), 0); + + loader->RegisterResourceFactory(std::make_shared<Ship::ResourceFactoryBinaryBlobV0>(), RESOURCE_FORMAT_BINARY, + "Blob", static_cast<uint32_t>(Ship::ResourceType::Blob), 0); loader->RegisterResourceFactory(std::make_shared<SF64::ResourceFactoryBinaryAudioTableV0>(), RESOURCE_FORMAT_BINARY, "AudioTable", static_cast<uint32_t>(SF64::ResourceType::AudioTable), 0); |
