Skip to content

Commit

Permalink
standalone: basic DMD PUP trigger matching (vpinball#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner authored Mar 29, 2024
1 parent b771ac9 commit 05018b6
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/assets/Default_VPinballX.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ PinMAMEWindowHeight =
PinMAMEWindowRotation =
AltSound =
AltColor =
PUPCapture =
FlexDMDWindow =
FlexDMDWindowX =
FlexDMDWindowY =
Expand Down
14 changes: 14 additions & 0 deletions standalone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,20 @@ cmake -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build -- -j$(nproc)
```
### Linux (Ubuntu 23.10)
In a terminal execute the following:
```
sudo apt install git build-essential autoconf automake libtool cmake nasm bison curl zlib1g-dev libdrm-dev libgbm-dev libglu1-mesa-dev libegl-dev libudev-dev libx11-dev libxrandr-dev nasm
git clone -b standalone https://github.com/vpinball/vpinball
cd vpinball/standalone/linux-x64
CC=gcc-13 CXX=g++-13 ./external.sh
cd ../..
cp standalone/cmake/CMakeLists_gl-linux-x64.txt CMakeLists.txt
cmake -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build -- -j$(nproc)
```
### Linux (Fedora 37)
In a terminal execute the following:
Expand Down
1 change: 1 addition & 0 deletions standalone/Standalone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ void Standalone::Startup()
pConfig->SetDMDServer(pSettings->LoadValueWithDefault(Settings::Standalone, "DMDServer"s, false));
pConfig->SetDMDServerAddr(pSettings->LoadValueWithDefault(Settings::Standalone, "DMDServerAddr"s, "localhost"s).c_str());
pConfig->SetDMDServerPort(pSettings->LoadValueWithDefault(Settings::Standalone, "DMDServerPort"s, 6789));
pConfig->SetPUPCapture(pSettings->LoadValueWithDefault(Settings::Standalone, "PUPCapture"s, false));

if (pSettings->LoadValueWithDefault(Settings::Standalone, "B2SPlugins"s, false)) {
if (pSettings->LoadValueWithDefault(Settings::Standalone, "DOFPlugin"s, true))
Expand Down
2 changes: 1 addition & 1 deletion standalone/android-arm64-v8a/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SDL2_IMAGE_VERSION=2.8.2
SDL2_TTF_VERSION=2.22.0
PINMAME_SHA=788aa7af6eae8f777882e42abf44117f95a26bf4
LIBALTSOUND_SHA=9ac08a76e2aabc1fba57d3e5a3b87e7f63c09e07
LIBDMDUTIL_SHA=4e5abe7934bfed1ce7b822b28ffbaf9104359083
LIBDMDUTIL_SHA=93411244c5999fc293d9df1eeb02e0b45b129bc2
LIBDOF_SHA=92890aac83c03d76ed261424c274e17a9d54f6eb
BGFX_CMAKE_VERSION=1.126.8700-463
FFMPEG_SHA=e38092ef9395d7049f871ef4d5411eb410e283e0
Expand Down
6 changes: 6 additions & 0 deletions standalone/inc/vpinmame/VPinMAMEController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ void PINMAMECALLBACK VPinMAMEController::OnDisplayAvailable(int index, int displ
pDisplay->pDMD->SetRomName(pController->m_pPinmameGame->name);
}

if (g_pplayer->m_ptable->m_settings.LoadValueWithDefault(Settings::Standalone, "PUPCapture"s, false)) {
string szPupVideosPath = g_pvp->m_currentTablePath + "PupVideos" + PATH_SEPARATOR_CHAR;
pDisplay->pDMD->SetPUPVideosPath(szPupVideosPath.c_str());
pDisplay->pDMD->SetRomName(pController->m_pPinmameGame->name);
}

if (!pController->m_pActiveDisplay) {
pController->m_pActiveDisplay = pDisplay;
if (pController->m_pDMDWindow)
Expand Down
2 changes: 1 addition & 1 deletion standalone/ios-arm64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SDL2_IMAGE_VERSION=2.8.2
SDL2_TTF_VERSION=2.22.0
PINMAME_SHA=788aa7af6eae8f777882e42abf44117f95a26bf4
LIBALTSOUND_SHA=9ac08a76e2aabc1fba57d3e5a3b87e7f63c09e07
LIBDMDUTIL_SHA=4e5abe7934bfed1ce7b822b28ffbaf9104359083
LIBDMDUTIL_SHA=93411244c5999fc293d9df1eeb02e0b45b129bc2
LIBDOF_SHA=92890aac83c03d76ed261424c274e17a9d54f6eb
BGFX_CMAKE_VERSION=1.126.8700-463
FFMPEG_SHA=e38092ef9395d7049f871ef4d5411eb410e283e0
Expand Down
2 changes: 1 addition & 1 deletion standalone/linux-aarch64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SDL2_IMAGE_VERSION=2.8.2
SDL2_TTF_VERSION=2.22.0
PINMAME_SHA=788aa7af6eae8f777882e42abf44117f95a26bf4
LIBALTSOUND_SHA=9ac08a76e2aabc1fba57d3e5a3b87e7f63c09e07
LIBDMDUTIL_SHA=4e5abe7934bfed1ce7b822b28ffbaf9104359083
LIBDMDUTIL_SHA=93411244c5999fc293d9df1eeb02e0b45b129bc2
LIBDOF_SHA=92890aac83c03d76ed261424c274e17a9d54f6eb
BGFX_CMAKE_VERSION=1.126.8700-463
FFMPEG_SHA=e38092ef9395d7049f871ef4d5411eb410e283e0
Expand Down
2 changes: 1 addition & 1 deletion standalone/linux-x64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SDL2_IMAGE_VERSION=2.8.2
SDL2_TTF_VERSION=2.22.0
PINMAME_SHA=788aa7af6eae8f777882e42abf44117f95a26bf4
LIBALTSOUND_SHA=9ac08a76e2aabc1fba57d3e5a3b87e7f63c09e07
LIBDMDUTIL_SHA=4e5abe7934bfed1ce7b822b28ffbaf9104359083
LIBDMDUTIL_SHA=93411244c5999fc293d9df1eeb02e0b45b129bc2
LIBDOF_SHA=92890aac83c03d76ed261424c274e17a9d54f6eb
BGFX_CMAKE_VERSION=1.126.8700-463
FFMPEG_SHA=e38092ef9395d7049f871ef4d5411eb410e283e0
Expand Down
2 changes: 1 addition & 1 deletion standalone/macos-arm64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SDL2_IMAGE_VERSION=2.8.2
SDL2_TTF_VERSION=2.22.0
PINMAME_SHA=788aa7af6eae8f777882e42abf44117f95a26bf4
LIBALTSOUND_SHA=9ac08a76e2aabc1fba57d3e5a3b87e7f63c09e07
LIBDMDUTIL_SHA=4e5abe7934bfed1ce7b822b28ffbaf9104359083
LIBDMDUTIL_SHA=93411244c5999fc293d9df1eeb02e0b45b129bc2
LIBDOF_SHA=92890aac83c03d76ed261424c274e17a9d54f6eb
BGFX_CMAKE_VERSION=1.126.8700-463
FFMPEG_SHA=e38092ef9395d7049f871ef4d5411eb410e283e0
Expand Down
2 changes: 1 addition & 1 deletion standalone/macos-x64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SDL2_IMAGE_VERSION=2.8.2
SDL2_TTF_VERSION=2.22.0
PINMAME_SHA=788aa7af6eae8f777882e42abf44117f95a26bf4
LIBALTSOUND_SHA=9ac08a76e2aabc1fba57d3e5a3b87e7f63c09e07
LIBDMDUTIL_SHA=4e5abe7934bfed1ce7b822b28ffbaf9104359083
LIBDMDUTIL_SHA=93411244c5999fc293d9df1eeb02e0b45b129bc2
LIBDOF_SHA=92890aac83c03d76ed261424c274e17a9d54f6eb
BGFX_CMAKE_VERSION=1.126.8700-463
FFMPEG_SHA=e38092ef9395d7049f871ef4d5411eb410e283e0
Expand Down
2 changes: 1 addition & 1 deletion standalone/tvos-arm64/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SDL2_IMAGE_VERSION=2.8.2
SDL2_TTF_VERSION=2.22.0
PINMAME_SHA=788aa7af6eae8f777882e42abf44117f95a26bf4
LIBALTSOUND_SHA=9ac08a76e2aabc1fba57d3e5a3b87e7f63c09e07
LIBDMDUTIL_SHA=4e5abe7934bfed1ce7b822b28ffbaf9104359083
LIBDMDUTIL_SHA=93411244c5999fc293d9df1eeb02e0b45b129bc2
LIBDOF_SHA=92890aac83c03d76ed261424c274e17a9d54f6eb
BGFX_CMAKE_VERSION=1.126.8700-463
FFMPEG_SHA=e38092ef9395d7049f871ef4d5411eb410e283e0
Expand Down

0 comments on commit 05018b6

Please sign in to comment.