sdl12-compat: debugging: Make note of the binary name we see.

From 209ebaec06d37d46cb79e4ded1b549b5b0fb485e Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Fri, 18 Nov 2022 19:22:07 -0500
Subject: [PATCH] debugging: Make note of the binary name we see.

This is useful when you go to add a quirk for "mygame" but it turns out
that name is just a script that runs "mygame.bin" or whatever.
---
 src/SDL12_compat.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 6cc9a4376..d195ca224 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -1326,6 +1326,10 @@ SDL12Compat_ApplyQuirks(SDL_bool force_x11)
     const char *exe_name = SDL12Compat_GetExeName();
     int i;
 
+    if (WantDebugLogging) {
+        SDL20_Log("This app appears to be named '%s'", exe_name);
+    }
+
     #ifdef __linux__
     if (force_x11) {
         const char *videodriver_env = SDL20_getenv("SDL_VIDEODRIVER");