From fee5f7608e821da03f63236141f943feebfc6ca6 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 3 Apr 2023 13:12:22 +0200 Subject: [PATCH] Fix SDK launcher bug Add missing argument for string format specifier. Fixed additional compiler warnings by casting types/commenting unused. --- r5dev/sdklauncher/basepanel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/r5dev/sdklauncher/basepanel.cpp b/r5dev/sdklauncher/basepanel.cpp index 8b8a68df..f1fc620b 100644 --- a/r5dev/sdklauncher/basepanel.cpp +++ b/r5dev/sdklauncher/basepanel.cpp @@ -589,7 +589,7 @@ void CSurface::LoadSettings() } catch (const std::exception& e) { - printf("%s: Exception while parsing VDF file: %s\n", e.what()); + printf("%s: Exception while parsing VDF file: %s\n", __FUNCTION__, e.what()); } } @@ -661,7 +661,7 @@ void CSurface::OnLoad(Forms::Control* pSender) // Purpose: close callback // Input : *pSender - //----------------------------------------------------------------------------- -void CSurface::OnClose(const std::unique_ptr& pEventArgs, Forms::Control* pSender) +void CSurface::OnClose(const std::unique_ptr& /*pEventArgs*/, Forms::Control* pSender) { ((CSurface*)pSender->FindForm())->SaveSettings(); } @@ -831,7 +831,7 @@ void CSurface::GetVirtualItem(const std::unique_ptr(pSurface->m_LogList.size()) <= 0) return; - pEventArgs->Style.ForeColor = Drawing::Color::White; + pEventArgs->Style.ForeColor = (Gdiplus::ARGB)Drawing::Color::White; pEventArgs->Style.BackColor = pSender->BackColor(); pSurface->m_ConsoleListView->SetVirtualListSize(static_cast(pSurface->m_LogList.size()));