Skip to content

Commit

Permalink
fixed cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Dec 30, 2023
1 parent a920f5a commit 2e2cf64
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cmake/ppuc/CMakeLists_linux-arm64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ add_library(pinmame SHARED
src/wpc/degames.c
src/wpc/desound.c
src/wpc/desound.h
src/wpc/dmddevice.h
src/wpc/dmddevice.cpp
src/wpc/driver.c
src/wpc/efo.c
src/wpc/efosnd.c
Expand Down
2 changes: 2 additions & 0 deletions cmake/ppuc/CMakeLists_linux-x64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ add_library(pinmame SHARED
src/wpc/degames.c
src/wpc/desound.c
src/wpc/desound.h
src/wpc/dmddevice.h
src/wpc/dmddevice.cpp
src/wpc/driver.c
src/wpc/efo.c
src/wpc/efosnd.c
Expand Down
2 changes: 2 additions & 0 deletions cmake/ppuc/CMakeLists_osx-x64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ add_library(pinmame SHARED
src/wpc/degames.c
src/wpc/desound.c
src/wpc/desound.h
src/wpc/dmddevice.h
src/wpc/dmddevice.cpp
src/wpc/driver.c
src/wpc/efo.c
src/wpc/efosnd.c
Expand Down
2 changes: 2 additions & 0 deletions cmake/ppuc/CMakeLists_win-x64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ add_library(pinmame SHARED
src/wpc/degames.c
src/wpc/desound.c
src/wpc/desound.h
src/wpc/dmddevice.h
src/wpc/dmddevice.cpp
src/wpc/driver.c
src/wpc/efo.c
src/wpc/efosnd.c
Expand Down
9 changes: 5 additions & 4 deletions src/ppuc/ppuc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ void CALLBACK OnLogMessage(PINMAME_LOG_LEVEL logLevel, const char *format, va_li
char buffer[1024];
vsnprintf(buffer, sizeof(buffer), format, args);

if (logLevel == PINMAME_LOG_LEVEL::LOG_INFO)
if (logLevel == PINMAME_LOG_LEVEL_INFO)
{
printf("INFO: %s", buffer);
}
else if (logLevel == PINMAME_LOG_LEVEL::LOG_ERROR)
else if (logLevel == PINMAME_LOG_LEVEL_ERROR)
{
printf("ERROR: %s", buffer);
}
Expand Down Expand Up @@ -198,7 +198,7 @@ void CALLBACK OnDisplayUpdated(int index, void *p_displayData, PinmameDisplayLay
p_displayLayout->length);

std::unique_lock<std::shared_mutex> ul(dmd_shared_mutex);
if ((p_displayLayout->type & DMD) == DMD)
if ((p_displayLayout->type & PINMAME_DISPLAY_TYPE_DMD) == PINMAME_DISPLAY_TYPE_DMD)
{
dmd_frame_buffer_width[dmd_frame_buffer_position] = p_displayLayout->width;
dmd_frame_buffer_height[dmd_frame_buffer_position] = p_displayLayout->height;
Expand Down Expand Up @@ -743,7 +743,8 @@ int main(int argc, char *argv[])

PinmameSetConfig(&config);

PinmameSetDmdMode(PINMAME_DMD_MODE::RAW);
PinmameSetDmdMode(PINMAME_DMD_MODE_RAW);
//PinmameSetSoundMode(PINMAME_SOUND_MODE_ALTSOUND);
PinmameSetHandleKeyboard(0);
PinmameSetHandleMechanics(0);

Expand Down

0 comments on commit 2e2cf64

Please sign in to comment.