From a7f604320505c48d4d7279831ee21febc0d540df Mon Sep 17 00:00:00 2001 From: JP-Carr <60516230+why-keith@users.noreply.github.com> Date: Sat, 25 Mar 2023 16:22:30 +0000 Subject: [PATCH] switched cafeLog_logLine() with cemuLog_log() --- src/Cafe/HW/Latte/Core/LatteShaderGL.cpp | 2 +- src/Cafe/HW/Latte/Renderer/OpenGL/RendererShaderGL.cpp | 4 ++-- src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Cafe/HW/Latte/Core/LatteShaderGL.cpp b/src/Cafe/HW/Latte/Core/LatteShaderGL.cpp index e709e46d..3d5e9c72 100644 --- a/src/Cafe/HW/Latte/Core/LatteShaderGL.cpp +++ b/src/Cafe/HW/Latte/Core/LatteShaderGL.cpp @@ -20,7 +20,7 @@ bool gxShader_checkIfSuccessfullyLinked(GLuint glProgram) glGetProgramInfoLog(glProgram, std::min(tempLength, infoLogLength), (GLsizei*)&tempLength, (GLcharARB*)infoLog); infoLog[tempLength] = '\0'; forceLog_printf("Link error in raw shader"); - cafeLog_logLine(LOG_TYPE_FORCE, infoLog); + cemuLog_log(LogType::Force, infoLog); return false; } diff --git a/src/Cafe/HW/Latte/Renderer/OpenGL/RendererShaderGL.cpp b/src/Cafe/HW/Latte/Renderer/OpenGL/RendererShaderGL.cpp index dc088ae3..73016aaf 100644 --- a/src/Cafe/HW/Latte/Renderer/OpenGL/RendererShaderGL.cpp +++ b/src/Cafe/HW/Latte/Renderer/OpenGL/RendererShaderGL.cpp @@ -193,7 +193,7 @@ bool RendererShaderGL::WaitForCompiled() glGetShaderInfoLog(m_shader_object, std::min(infoLogLength, tempLength), (GLsizei*)&tempLength, (GLcharARB*)infoLog); infoLog[tempLength] = '\0'; forceLog_printf("Compile error in shader. Log:", infoLog); - cafeLog_logLine(LOG_TYPE_FORCE, infoLog); + cemuLog_log(LogType::Force, infoLog); } if (m_shader_object != 0) glDeleteShader(m_shader_object); @@ -213,7 +213,7 @@ bool RendererShaderGL::WaitForCompiled() glGetProgramInfoLog(m_program, std::min(infoLogLength, tempLength), (GLsizei*)&tempLength, (GLcharARB*)infoLog); infoLog[tempLength] = '\0'; forceLog_printf("Link error in shader. Log:", infoLog); - cafeLog_logLine(LOG_TYPE_FORCE, infoLog); + cemuLog_log(LogType::Force, infoLog); } m_isCompiled = true; return false; diff --git a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp index df37ae7e..d2854e04 100644 --- a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp +++ b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp @@ -80,7 +80,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL DebugUtilsCallback(VkDebugUtilsMessageSeverityFla #endif - cafeLog_logLine(LOG_TYPE_FORCE, (char*)pCallbackData->pMessage); + cemuLog_log(LogType::Force, (char*)pCallbackData->pMessage); return VK_FALSE; }