From a30730fd6287a24947ddfb555550c373e2ec2ce8 Mon Sep 17 00:00:00 2001 From: toxie Date: Tue, 10 Oct 2023 23:43:49 +0200 Subject: [PATCH] prepare support for altsound in PinMAME(32) --- src/ui/Win32ui.c | 4 ++++ src/ui/m32main.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/ui/Win32ui.c b/src/ui/Win32ui.c index 5d1e9cbd7..1f9105d1b 100644 --- a/src/ui/Win32ui.c +++ b/src/ui/Win32ui.c @@ -104,6 +104,8 @@ #endif /* defined(__GNUC__) */ +extern char g_szGameName[256]; + #ifndef HDF_SORTUP #define HDF_SORTUP 0x400 #endif @@ -805,6 +807,8 @@ static int RunMAME(int nGameIndex) time_t start, end; time_t elapsedtime; + strcpy_s(g_szGameName, sizeof(g_szGameName), drivers[nGameIndex]->name); + CreateCommandLine(nGameIndex, pCmdLine); ZeroMemory(&si, sizeof(si)); diff --git a/src/ui/m32main.c b/src/ui/m32main.c index 464a3417a..c7dbf04ee 100644 --- a/src/ui/m32main.c +++ b/src/ui/m32main.c @@ -16,6 +16,8 @@ #include "Screenshot.h" #include "win32ui.h" +char g_szGameName[256] = ""; // String containing requested game name (may be different from ROM if aliased) + int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,