From d146b3a30948c0da1396f41a10d5e4297b777205 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Thu, 3 Apr 2025 23:52:04 +0300 Subject: [PATCH] Why do I end up writing these --- Core/rewind.c | 2 +- JoyKit/JOYFullReportElement.m | 2 +- Shaders/MasterShader.metal | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/rewind.c b/Core/rewind.c index 8b18d463..9a1038ff 100644 --- a/Core/rewind.c +++ b/Core/rewind.c @@ -226,7 +226,7 @@ void GB_set_rewind_length(GB_gameboy_t *gb, double seconds) void GB_rewind_invalidate_for_backstepping(GB_gameboy_t *gb) { - if (gb->rewind_disable_invalidation) return;; + if (gb->rewind_disable_invalidation) return; if (gb->rewind_sequences && gb->rewind_sequences[gb->rewind_pos].key_state) { typeof(gb->rewind_sequences[0]) *sequence = &gb->rewind_sequences[gb->rewind_pos]; sequence->instruction_count[sequence->pos] |= 0x80000000; diff --git a/JoyKit/JOYFullReportElement.m b/JoyKit/JOYFullReportElement.m index f43b31c0..e4f464cd 100644 --- a/JoyKit/JOYFullReportElement.m +++ b/JoyKit/JOYFullReportElement.m @@ -46,7 +46,7 @@ { [self updateValue:value]; - return IOHIDDeviceSetReport(_device, kIOHIDReportTypeOutput, _reportID, [_data bytes], [_data length]);; + return IOHIDDeviceSetReport(_device, kIOHIDReportTypeOutput, _reportID, [_data bytes], [_data length]); } - (void)updateValue:(NSData *)value diff --git a/Shaders/MasterShader.metal b/Shaders/MasterShader.metal index aaa84d0d..45207231 100644 --- a/Shaders/MasterShader.metal +++ b/Shaders/MasterShader.metal @@ -42,7 +42,7 @@ static inline float4 texture(texture2d texture, float2 pos) __attribute__((unused)) static inline float4 texture_relative(texture2d t, float2 pos, float2 offset) { - float2 input_resolution = float2(t.get_width(), t.get_height());; + float2 input_resolution = float2(t.get_width(), t.get_height()); float2 origin = (floor(pos * input_resolution)) + float2(0.5, 0.5); return texture(t, (origin + offset) / input_resolution); }