From 4a1ac277f95632362d674b8d801a2722a94913da Mon Sep 17 00:00:00 2001 From: Moss Gallagher Date: Sun, 11 Jun 2023 02:03:07 -0700 Subject: [PATCH] isle: Partially Matched setupVideoFlags to Original For some reason the decomp version is doing the first xor in EnableFullScreen with the operands swapped. The source code and the original binary both have m_flags ^ e but the decomp binary has e ^ m_flags. This gives the same result but it is not a 100% match in the binary. I'm not sure why the compiler is doing this or how to change it but the other inaccuracy with the function is fixed. --- ISLE/isle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ISLE/isle.cpp b/ISLE/isle.cpp index cc9defe0..3756f916 100644 --- a/ISLE/isle.cpp +++ b/ISLE/isle.cpp @@ -234,8 +234,8 @@ void Isle::setupVideoFlags(BOOL fullScreen, BOOL flipSurfaces, BOOL backBuffers, m_videoParam.flags().EnableBackBuffers(backBuffers); m_videoParam.flags().EnableUnknown1(param_6); m_videoParam.flags().SetUnknown3(param_7); - m_videoParam.flags().EnableUnknown2(); m_videoParam.flags().EnableWideViewAngle(wideViewAngle); + m_videoParam.flags().EnableUnknown2(); m_videoParam.SetDeviceName(deviceId); if (using8bit) { m_videoParam.flags().Set8Bit();