mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 13:44:58 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user