From d9b6631dcd117b4fb5fcffd2fd64b4f4d05a8907 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 30 Aug 2023 23:43:20 +0200 Subject: [PATCH] SPU: fix some wierd typos (may be wrong, no idea) --- rpcs3/Emu/Cell/PPUModule.cpp | 2 +- rpcs3/Emu/Cell/SPUThread.cpp | 4 ++-- rpcs3/Input/ds4_pad_handler.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUModule.cpp b/rpcs3/Emu/Cell/PPUModule.cpp index c3bd69ea4b5e..bfd25b2297a9 100644 --- a/rpcs3/Emu/Cell/PPUModule.cpp +++ b/rpcs3/Emu/Cell/PPUModule.cpp @@ -1197,7 +1197,7 @@ static void ppu_check_patch_spu_images(const ppu_module& mod, const ppu_segment& { // SPURS GUID pattern end = it; - ppu_log.success("Found SPURS GUID Pattern for terminagtor at 0x%05x", end + seg.addr); + ppu_log.success("Found SPURS GUID Pattern for terminator at 0x%05x", end + seg.addr); break; } diff --git a/rpcs3/Emu/Cell/SPUThread.cpp b/rpcs3/Emu/Cell/SPUThread.cpp index 45d3f872340a..c6fce774626f 100644 --- a/rpcs3/Emu/Cell/SPUThread.cpp +++ b/rpcs3/Emu/Cell/SPUThread.cpp @@ -4068,9 +4068,9 @@ bool spu_thread::is_exec_code(u32 addr, std::span ls_ptr, u32 base_add // Test the validity of a single instruction of the optional target // This function can't be too slow and is unlikely to improve results by a great deal const u32 op0 = read_from_ptr>(ls_ptr, route_pc - base_addr); - const auto type0 = s_spu_itype.decode(op); + const spu_itype::type type0 = s_spu_itype.decode(op0); - if (type == spu_itype::UNK || !op) + if (type0 == spu_itype::UNK || !op0) { return false; } diff --git a/rpcs3/Input/ds4_pad_handler.cpp b/rpcs3/Input/ds4_pad_handler.cpp index 0f8c962bd008..a7a48492000c 100644 --- a/rpcs3/Input/ds4_pad_handler.cpp +++ b/rpcs3/Input/ds4_pad_handler.cpp @@ -16,8 +16,8 @@ namespace constexpr u32 DS4_GYRO_RES_PER_DEG_S = 86; // technically this could be 1024, but keeping it at 86 keeps us within 16 bits of precision constexpr u32 DS4_FEATURE_REPORT_0x02_SIZE = 37; constexpr u32 DS4_FEATURE_REPORT_0x05_SIZE = 41; - constexpr u32 DS4_FEATURE_REPORT_0x12_SIZE = 16; - constexpr u32 DS4_FEATURE_REPORT_0x81_SIZE = 7; + //constexpr u32 DS4_FEATURE_REPORT_0x12_SIZE = 16; + //constexpr u32 DS4_FEATURE_REPORT_0x81_SIZE = 7; constexpr u32 DS4_FEATURE_REPORT_0xA3_SIZE = 49; constexpr u32 DS4_INPUT_REPORT_0x11_SIZE = 78; constexpr u32 DS4_OUTPUT_REPORT_0x05_SIZE = 32;