Skip to content

Commit

Permalink
prepare support for altsound in PinMAME(32)
Browse files Browse the repository at this point in the history
  • Loading branch information
toxieainc committed Oct 10, 2023
1 parent bba263d commit a30730f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ui/Win32ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@

#endif /* defined(__GNUC__) */

extern char g_szGameName[256];

#ifndef HDF_SORTUP
#define HDF_SORTUP 0x400
#endif
Expand Down Expand Up @@ -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));
Expand Down
2 changes: 2 additions & 0 deletions src/ui/m32main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a30730f

Please sign in to comment.