From 3ab45971213014230c84625b5d837bfdec8d8186 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 27 Nov 2022 17:41:03 +0100 Subject: [PATCH] Use 'Warning()' if 'Miles_Initialize' failed --- r5dev/codecs/Miles/miles_impl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/r5dev/codecs/Miles/miles_impl.cpp b/r5dev/codecs/Miles/miles_impl.cpp index 173f1672..c178e86b 100644 --- a/r5dev/codecs/Miles/miles_impl.cpp +++ b/r5dev/codecs/Miles/miles_impl.cpp @@ -18,11 +18,12 @@ void AIL_LogFunc(int64_t nLogLevel, const char* pszMessage) //----------------------------------------------------------------------------- bool Miles_Initialize() { - bool result = v_Miles_Initialize(); + bool bResult = v_Miles_Initialize(); - DevMsg(eDLL_T::AUDIO, "Miles_Initialize: %s\n", result ? "initialized successfully" : "failed to initialize"); + bResult ? DevMsg(eDLL_T::AUDIO, __FUNCTION__": %s\n", "initialized successfully") + : Warning(eDLL_T::AUDIO, __FUNCTION__": %s\n", "failed to initialize"); - return result; + return bResult; } ///////////////////////////////////////////////////////////////////////////////