From 3b7d22153fd069340b8a5ff6655cdcfaa5acd77f Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Mon, 5 Jun 2023 20:13:50 +0200 Subject: [PATCH] SPR: Cleanup constants. --- pcsx2/SPR.cpp | 8 ++++---- pcsx2/SPR.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pcsx2/SPR.cpp b/pcsx2/SPR.cpp index c487fd5103..fd36baa4de 100644 --- a/pcsx2/SPR.cpp +++ b/pcsx2/SPR.cpp @@ -1,5 +1,5 @@ /* PCSX2 - PS2 Emulator for PCs - * Copyright (C) 2002-2010 PCSX2 Dev Team + * Copyright (C) 2002-2023 PCSX2 Dev Team * * PCSX2 is free software: you can redistribute it and/or modify it under the terms * of the GNU Lesser General Public License as published by the Free Software Found- @@ -179,15 +179,15 @@ int _SPR0chain() __fi void SPR0chain() { - int cycles = _SPR0chain() * BIAS; + const int cycles = _SPR0chain() * BIAS; CPU_INT(DMAC_FROM_SPR, cycles); } void _SPR0interleave() { int qwc = spr0ch.qwc; - int sqwc = dmacRegs.sqwc.SQWC; int tqwc = dmacRegs.sqwc.TQWC; + const int sqwc = dmacRegs.sqwc.SQWC; tDMA_TAG *pMem; if (tqwc == 0) tqwc = qwc; @@ -414,8 +414,8 @@ __fi void SPR1chain() void _SPR1interleave() { int qwc = spr1ch.qwc; - int sqwc = dmacRegs.sqwc.SQWC; int tqwc = dmacRegs.sqwc.TQWC; + const int sqwc = dmacRegs.sqwc.SQWC; tDMA_TAG *pMem; if (tqwc == 0) tqwc = qwc; diff --git a/pcsx2/SPR.h b/pcsx2/SPR.h index 980044fbc6..80e4ffe428 100644 --- a/pcsx2/SPR.h +++ b/pcsx2/SPR.h @@ -1,5 +1,5 @@ /* PCSX2 - PS2 Emulator for PCs - * Copyright (C) 2002-2010 PCSX2 Dev Team + * Copyright (C) 2002-2023 PCSX2 Dev Team * * PCSX2 is free software: you can redistribute it and/or modify it under the terms * of the GNU Lesser General Public License as published by the Free Software Found-