diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 24 | ||||
-rw-r--r-- | src/core/hle/service/audio/audout_u.h | 4 | ||||
-rw-r--r-- | src/yuzu/debugger/console.cpp | 7 | ||||
-rw-r--r-- | src/yuzu/main.cpp | 2 | ||||
-rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 3 |
5 files changed, 22 insertions, 18 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index 1b4b649d8..8bf273b22 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp @@ -27,12 +27,12 @@ public: {0, &IAudioOut::GetAudioOutState, "GetAudioOutState"}, {1, &IAudioOut::StartAudioOut, "StartAudioOut"}, {2, &IAudioOut::StopAudioOut, "StopAudioOut"}, - {3, &IAudioOut::AppendAudioOutBuffer, "AppendAudioOutBuffer"}, + {3, &IAudioOut::AppendAudioOutBufferImpl, "AppendAudioOutBuffer"}, {4, &IAudioOut::RegisterBufferEvent, "RegisterBufferEvent"}, - {5, &IAudioOut::GetReleasedAudioOutBuffer, "GetReleasedAudioOutBuffer"}, + {5, &IAudioOut::GetReleasedAudioOutBufferImpl, "GetReleasedAudioOutBuffer"}, {6, nullptr, "ContainsAudioOutBuffer"}, - {7, nullptr, "AppendAudioOutBufferAuto"}, - {8, nullptr, "GetReleasedAudioOutBufferAuto"}, + {7, &IAudioOut::AppendAudioOutBufferImpl, "AppendAudioOutBufferAuto"}, + {8, &IAudioOut::GetReleasedAudioOutBufferImpl, "GetReleasedAudioOutBufferAuto"}, {9, nullptr, "GetAudioOutBufferCount"}, {10, nullptr, "GetAudioOutPlayedSampleCount"}, {11, nullptr, "FlushAudioOutBuffers"}, @@ -96,7 +96,7 @@ private: rb.PushCopyObjects(buffer_event); } - void AppendAudioOutBuffer(Kernel::HLERequestContext& ctx) { + void AppendAudioOutBufferImpl(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_Audio, "(STUBBED) called"); IPC::RequestParser rp{ctx}; @@ -107,7 +107,7 @@ private: rb.Push(RESULT_SUCCESS); } - void GetReleasedAudioOutBuffer(Kernel::HLERequestContext& ctx) { + void GetReleasedAudioOutBufferImpl(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_Audio, "(STUBBED) called"); // TODO(st4rk): This is how libtransistor currently implements the @@ -163,7 +163,7 @@ private: AudioState audio_out_state; }; -void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) { +void AudOutU::ListAudioOutsImpl(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_Audio, "(STUBBED) called"); IPC::RequestParser rp{ctx}; @@ -179,7 +179,7 @@ void AudOutU::ListAudioOuts(Kernel::HLERequestContext& ctx) { rb.Push<u32>(1); } -void AudOutU::OpenAudioOut(Kernel::HLERequestContext& ctx) { +void AudOutU::OpenAudioOutImpl(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_Audio, "(STUBBED) called"); if (!audio_out_interface) { @@ -196,10 +196,10 @@ void AudOutU::OpenAudioOut(Kernel::HLERequestContext& ctx) { } AudOutU::AudOutU() : ServiceFramework("audout:u") { - static const FunctionInfo functions[] = {{0, &AudOutU::ListAudioOuts, "ListAudioOuts"}, - {1, &AudOutU::OpenAudioOut, "OpenAudioOut"}, - {2, nullptr, "ListAudioOutsAuto"}, - {3, nullptr, "OpenAudioOutAuto"}}; + static const FunctionInfo functions[] = {{0, &AudOutU::ListAudioOutsImpl, "ListAudioOuts"}, + {1, &AudOutU::OpenAudioOutImpl, "OpenAudioOut"}, + {2, &AudOutU::ListAudioOutsImpl, "ListAudioOutsAuto"}, + {3, &AudOutU::OpenAudioOutImpl, "OpenAudioOutAuto"}}; RegisterHandlers(functions); } diff --git a/src/core/hle/service/audio/audout_u.h b/src/core/hle/service/audio/audout_u.h index 1f9bb9bcf..847d86aa6 100644 --- a/src/core/hle/service/audio/audout_u.h +++ b/src/core/hle/service/audio/audout_u.h @@ -22,8 +22,8 @@ public: private: std::shared_ptr<IAudioOut> audio_out_interface; - void ListAudioOuts(Kernel::HLERequestContext& ctx); - void OpenAudioOut(Kernel::HLERequestContext& ctx); + void ListAudioOutsImpl(Kernel::HLERequestContext& ctx); + void OpenAudioOutImpl(Kernel::HLERequestContext& ctx); enum class PcmFormat : u32 { Invalid = 0, diff --git a/src/yuzu/debugger/console.cpp b/src/yuzu/debugger/console.cpp index e3d2d975f..320898f6a 100644 --- a/src/yuzu/debugger/console.cpp +++ b/src/yuzu/debugger/console.cpp @@ -14,6 +14,13 @@ namespace Debugger { void ToggleConsole() { + static bool console_shown = false; + if (console_shown == UISettings::values.show_console) { + return; + } else { + console_shown = UISettings::values.show_console; + } + #if defined(_WIN32) && !defined(_DEBUG) FILE* temp; if (UISettings::values.show_console) { diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 05a8ae6d2..9ce8d7c27 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -908,8 +908,6 @@ void GMainWindow::UpdateUITheme() { #endif int main(int argc, char* argv[]) { - Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>()); - MicroProfileOnThreadCreate("Frontend"); SCOPE_EXIT({ MicroProfileShutdown(); }); diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 8ddd202d8..5f67ae4ee 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp @@ -127,6 +127,7 @@ int main(int argc, char** argv) { #endif Log::Filter log_filter(Log::Level::Debug); + log_filter.ParseFilterString(Settings::values.log_filter); Log::SetGlobalFilter(log_filter); Log::AddBackend(std::make_unique<Log::ColorConsoleBackend>()); @@ -142,8 +143,6 @@ int main(int argc, char** argv) { return -1; } - log_filter.ParseFilterString(Settings::values.log_filter); - // Apply the command line arguments Settings::values.gdbstub_port = gdb_port; Settings::values.use_gdbstub = use_gdbstub; |