From 8f796352a67a2f774fa0f31302bba531273659a0 Mon Sep 17 00:00:00 2001 From: wheremyfoodat Date: Sun, 11 Dec 2022 03:12:20 +0200 Subject: [PATCH] Fix typos --- src/core/PICA/shader_interpreter.cpp | 4 ++-- src/core/kernel/kernel.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/PICA/shader_interpreter.cpp b/src/core/PICA/shader_interpreter.cpp index a265ffc5..7a7bf45b 100644 --- a/src/core/PICA/shader_interpreter.cpp +++ b/src/core/PICA/shader_interpreter.cpp @@ -186,8 +186,8 @@ void PICAShader::max(u32 instruction) { u32 componentMask = operandDescriptor & 0xf; for (int i = 0; i < 4; i++) { if (componentMask & (1 << i)) { - const auto mininum = srcVec1[3 - i] > srcVec2[3 - i] ? srcVec1[3 - i] : srcVec2[3 - i]; - destVector[3 - i] = mininum; + const auto maximum = srcVec1[3 - i] > srcVec2[3 - i] ? srcVec1[3 - i] : srcVec2[3 - i]; + destVector[3 - i] = maximum; } } } diff --git a/src/core/kernel/kernel.cpp b/src/core/kernel/kernel.cpp index 2725865f..a2fd7896 100644 --- a/src/core/kernel/kernel.cpp +++ b/src/core/kernel/kernel.cpp @@ -203,7 +203,7 @@ void Kernel::getProcessInfo() { regs[0] = SVCResult::Success; } -// Result GetThreadId(u32* threadId, Handle thread) +// Result DuplicateHandle(Handle* out, Handle original) void Kernel::duplicateHandle() { Handle original = regs[1]; logSVC("DuplicateHandle(handle = %X)\n", original);