sdl2-compat: dylib_locations[]: add missing trailing slash to "/Library/Frameworks"

From 54fedd3bc0f1d9c5bca4c89430713aff5aa9d9b8 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 19 Jul 2026 05:15:50 +0300
Subject: [PATCH] dylib_locations[]: add missing trailing slash to
 "/Library/Frameworks"

Rerefence issue: https://github.com/libsdl-org/sdl12-compat/issues/398

Also fix SDL2.framework with SDL3.framework in comments.
---
 src/sdl2_compat.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 40a10a0a..c8d0eec6 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -401,11 +401,11 @@ static char loaderror[256];
         /* I don't know if this is the _right_ order to try, but this seems reasonable */
         static const char * const dylib_locations[] = {
             "@loader_path/" SDL3_LIBNAME, /* MyApp.app/Contents/MacOS/libSDL3.dylib */
-            "@loader_path/../Frameworks/" SDL3_FRAMEWORK, /* MyApp.app/Contents/Frameworks/SDL2.framework */
+            "@loader_path/../Frameworks/" SDL3_FRAMEWORK, /* MyApp.app/Contents/Frameworks/SDL3.framework */
             "@executable_path/" SDL3_LIBNAME, /* MyApp.app/Contents/MacOS/libSDL3.dylib */
-            "@executable_path/../Frameworks/" SDL3_FRAMEWORK, /* MyApp.app/Contents/Frameworks/SDL2.framework */
-            NULL,  /* /Users/username/Library/Frameworks/SDL2.framework */
-            "/Library/Frameworks" SDL3_FRAMEWORK, /* /Library/Frameworks/SDL2.framework */
+            "@executable_path/../Frameworks/" SDL3_FRAMEWORK, /* MyApp.app/Contents/Frameworks/SDL3.framework */
+            NULL,  /* /Users/username/Library/Frameworks/SDL3.framework */
+            "/Library/Frameworks/" SDL3_FRAMEWORK, /* /Library/Frameworks/SDL3.framework */
             SDL3_LIBNAME /* oh well, anywhere the system can see the .dylib (/usr/local/lib or whatever) */
         };