From 4c166b9b5acfb0260b69ae29aa77ea3e1797c975 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 6 Mar 2025 12:07:28 -0500 Subject: [PATCH] move blip_buf to extern so it can be used by other cores --- CMakeLists.txt | 5 +++-- {src/engine => extern/blip_buf}/blip_buf.c | 0 {src/engine => extern/blip_buf}/blip_buf.h | 0 {src/engine => extern/blip_buf}/blip_buf.txt | 0 src/engine/platform/sound/pce_psg.h | 2 +- 5 files changed, 4 insertions(+), 3 deletions(-) rename {src/engine => extern/blip_buf}/blip_buf.c (100%) rename {src/engine => extern/blip_buf}/blip_buf.h (100%) rename {src/engine => extern/blip_buf}/blip_buf.txt (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 21c709bfd..726f024b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -146,7 +146,7 @@ else() set(MAKE_BUNDLE OFF) endif() -set(DEPENDENCIES_INCLUDE_DIRS extern/IconFontCppHeaders src/icon) +set(DEPENDENCIES_INCLUDE_DIRS extern/IconFontCppHeaders extern/blip_buf src/icon) if (ANDROID AND NOT TERMUX) set(DEPENDENCIES_DEFINES "IS_MOBILE") @@ -542,6 +542,8 @@ extern/YM2608-LLE/fmopna_2612.c extern/pwrnoise/pwrnoise.c +extern/blip_buf/blip_buf.c + src/pch.cpp src/engine/platform/sound/sn76496.cpp @@ -701,7 +703,6 @@ src/engine/fileOps/pps.cpp src/engine/fileOps/pvi.cpp src/engine/fileOps/pzi.cpp -src/engine/blip_buf.c src/engine/brrUtils.c src/engine/safeReader.cpp src/engine/safeWriter.cpp diff --git a/src/engine/blip_buf.c b/extern/blip_buf/blip_buf.c similarity index 100% rename from src/engine/blip_buf.c rename to extern/blip_buf/blip_buf.c diff --git a/src/engine/blip_buf.h b/extern/blip_buf/blip_buf.h similarity index 100% rename from src/engine/blip_buf.h rename to extern/blip_buf/blip_buf.h diff --git a/src/engine/blip_buf.txt b/extern/blip_buf/blip_buf.txt similarity index 100% rename from src/engine/blip_buf.txt rename to extern/blip_buf/blip_buf.txt diff --git a/src/engine/platform/sound/pce_psg.h b/src/engine/platform/sound/pce_psg.h index 43d9d66aa..8faa0d607 100644 --- a/src/engine/platform/sound/pce_psg.h +++ b/src/engine/platform/sound/pce_psg.h @@ -24,7 +24,7 @@ #define __MDFN_HW_SOUND_PCE_PSG_PCE_PSG_H #include -#include "../../blip_buf.h" +#include "blip_buf.h" #include "../../dispatch.h" class PCE_PSG;