refactor: Update LogRuntimeConfig to use fully qualified ILogger type and stub SetAudioPlayer method in LuaScriptService for service-based audio handling

This commit is contained in:
2026-01-04 14:59:33 +00:00
parent b5d9438253
commit 0b3a0432f6
2 changed files with 5 additions and 6 deletions

View File

@@ -25,6 +25,8 @@
using namespace sdl3cpp::services;
using namespace sdl3cpp::services;
namespace sdl3cpp::app {
std::atomic<bool> g_signalReceived{false};
@@ -242,7 +244,7 @@ AppOptions ParseCommandLine(int argc, char** argv) {
return options;
}
void LogRuntimeConfig(const RuntimeConfig& config, std::shared_ptr<services::ILogger> logger) {
void LogRuntimeConfig(const RuntimeConfig& config, std::shared_ptr<sdl3cpp::services::ILogger> logger) {
if (logger) {
logger->TraceVariable("config.width", config.width);
logger->TraceVariable("config.height", config.height);

View File

@@ -108,11 +108,8 @@ script::PhysicsBridge& LuaScriptService::GetPhysicsBridge() {
}
void LuaScriptService::SetAudioPlayer(app::AudioPlayer* audioPlayer) {
if (!engine_) {
return;
}
engine_->SetAudioPlayer(audioPlayer);
// Stub - audio functionality now handled through services
logger_->Trace("LuaScriptService::SetAudioPlayer: Stub implementation - using services now");
}
std::filesystem::path LuaScriptService::GetScriptDirectory() const {