Skip to content

Commit a9a62e3

Browse files
committed
added support for a dedicated backbox computer
1 parent 1061f58 commit a9a62e3

File tree

10 files changed

+665
-2
lines changed

10 files changed

+665
-2
lines changed

CMakeLists.txt

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ if(PLATFORM STREQUAL "win")
6363
cargs64
6464
SDL364
6565
SDL3_image64
66-
yaml-cpp
6766
ws2_32
6867
)
6968
else()
@@ -74,7 +73,6 @@ if(PLATFORM STREQUAL "win")
7473
cargs
7574
SDL3
7675
SDL3_image
77-
yaml-cpp
7876
ws2_32
7977
)
8078
endif()
@@ -92,3 +90,50 @@ else()
9290
SDL3_image
9391
)
9492
endif()
93+
94+
add_executable(ppuc-backbox
95+
src/backbox.cpp
96+
src/VirtualDMD.cpp
97+
)
98+
99+
target_include_directories(ppuc-backbox PUBLIC
100+
third-party/include
101+
)
102+
103+
if(PLATFORM STREQUAL "win")
104+
target_link_directories(ppuc-backbox PUBLIC
105+
third-party/build-libs/${PLATFORM}-${ARCH}
106+
third-party/runtime-libs/${PLATFORM}-${ARCH}
107+
)
108+
if(ARCH STREQUAL "x64")
109+
target_link_libraries(ppuc-backbox LINK_PUBLIC
110+
dmdutil64
111+
cargs64
112+
SDL364
113+
SDL3_image64
114+
sockpp64
115+
ws2_32
116+
)
117+
else()
118+
target_link_libraries(ppuc-backbox LINK_PUBLIC
119+
dmdutil
120+
cargs
121+
SDL3
122+
SDL3_image
123+
sockpp
124+
ws2_32
125+
)
126+
endif()
127+
else()
128+
target_link_directories(ppuc-backbox PUBLIC
129+
third-party/runtime-libs/${PLATFORM}-${ARCH}
130+
)
131+
132+
target_link_libraries(ppuc-backbox LINK_PUBLIC
133+
dmdutil
134+
cargs
135+
SDL3
136+
SDL3_image
137+
sockpp
138+
)
139+
endif()

backbox.ini

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
[DMDServer]
3+
# Address (interface) to bind for incoming connections
4+
# Use 0.0.0.0 to accept connections from external devices on all interfaces
5+
Addr = 127.0.0.1
6+
# The port to listen for TCP connections.
7+
Port = 6789
8+
# Set to 1 if Serum colorization should be used, 0 if not.
9+
AltColor = 1
10+
# Overwrite the AltColorPath sent by the client and set it to a fixed value.
11+
AltColorPath =
12+
# Set to 1 if PUP DMD frame matching should be used, 0 if not.
13+
PUPCapture = 0
14+
# Overwrite the PUPVideosPath sent by the client and set it to a fixed value.
15+
PUPVideosPath =
16+
# Set to 1 if PUP DMD frame matching should respect the exact colors, 0 if not.
17+
PUPExactColorMatch = 1
18+
19+
[ZeDMD]
20+
# Set to 1 if ZeDMD is attached.
21+
Enabled = 1
22+
# Disable auto-detection and provide a fixed serial port.
23+
Device =
24+
# Set to 1 to enable ZeDMD debug mode.
25+
Debug = 0
26+
# Overwrite ZeDMD internal RGB order setting. Valid values are 0-5. -1 disables the setting.
27+
# The RGB level could be set at any time, but since ZeDMD version 3.6.0, ZeDMD need to be
28+
# rebooted to apply this the setting. So it is essential to set SaveSettings to 1 if a new
29+
# RGBOrder should be applied.
30+
RGBOrder = -1
31+
# Overwrite ZeDMD internal brightness setting. Valid values are 0-15. -1 disables the setting.
32+
# The brightness level could be adjust at runtime, SaveSettings set to 1 will save the setting
33+
# in ZeDMD, too.
34+
Brightness = -1
35+
# Set to 1 to permantenly store the overwritten settings above in ZeDMD internally.
36+
SaveSettings = 0
37+
38+
[ZeDMD-WiFi]
39+
# Set to 1 if ZeDMD-WiFi is available.
40+
Enabled = 0
41+
# Enter your ZeDMD WiFi IP address here
42+
WiFiAddr =
43+
44+
[Pixelcade]
45+
# Set to 1 if Pixelcade is attached
46+
Enabled = 0
47+
# Disable auto-detection and provide a fixed serial port
48+
Device =

platforms/linux/aarch64/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ rm -rf ppuc
1515
mkdir ppuc
1616

1717
cp build/ppuc-pinmame ppuc/
18+
cp build/ppuc-backbox ppuc/
1819
cp -P third-party/runtime-libs/linux-aarch64/*.so* ppuc/

platforms/linux/x64/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ rm -rf ppuc
1515
mkdir ppuc
1616

1717
cp build/ppuc-pinmame ppuc/
18+
cp build/ppuc-backbox ppuc/
1819
cp -P third-party/runtime-libs/linux-x64/*.so* ppuc/

platforms/macos/arm64/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ rm -rf ppuc
1515
mkdir ppuc
1616

1717
cp build/ppuc-pinmame ppuc/
18+
cp build/ppuc-backbox ppuc/
1819
cp -P third-party/runtime-libs/macos-arm64/*.dylib ppuc/

platforms/macos/x64/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ rm -rf ppuc
1515
mkdir ppuc
1616

1717
cp build/ppuc-pinmame ppuc/
18+
cp build/ppuc-backbox ppuc/
1819
cp -P third-party/runtime-libs/macos-x64/*.dylib ppuc/

platforms/win/x64/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ rm -rf ppuc
1515
mkdir ppuc
1616

1717
cp build/${BUILD_TYPE}/ppuc-pinmame ppuc/
18+
cp build/${BUILD_TYPE}/ppuc-backbox ppuc/
1819
cp -P third-party/runtime-libs/win-x64/*.dll ppuc/

platforms/win/x86/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ rm -rf ppuc
1515
mkdir ppuc
1616

1717
cp build/${BUILD_TYPE}/ppuc-pinmame ppuc/
18+
cp build/${BUILD_TYPE}/ppuc-backbox ppuc/
1819
cp -P third-party/runtime-libs/win-x86/*.dll ppuc/

0 commit comments

Comments
 (0)