Rename btdrv-mitm to bluetooth-mitm

This commit is contained in:
ndeadly 2020-09-08 17:07:59 +02:00
parent 1d92d9cabe
commit 2741cf3734
51 changed files with 15 additions and 13 deletions

2
.gitignore vendored
View file

@ -3,7 +3,7 @@
.patches/
tests/
dist/
btdrv-mitm/build/
bluetooth-mitm/build/
*.log
*.elf
*.nro

View file

@ -1,27 +1,28 @@
PROJECT_NAME := MissionControl
BTDRVMITM_TID := 010000000000bd00
BLUETOOTH_MITM_TID := 010000000000bd00
TARGETS := btdrv-mitm
TARGETS := bluetooth-mitm
all: $(TARGETS)
btdrv-mitm:
bluetooth-mitm:
$(MAKE) -C $@
clean:
$(MAKE) -C Atmosphere/libraries clean
$(MAKE) -C btdrv-mitm clean
$(MAKE) -C bluetooth-mitm clean
rm -rf dist
dist: all
rm -rf dist
mkdir -p dist/atmosphere/contents/$(BTDRVMITM_TID)
cp btdrv-mitm/btdrv-mitm.nsp dist/atmosphere/contents/$(BTDRVMITM_TID)/exefs.nsp
echo "btdrv" > dist/atmosphere/contents/$(BTDRVMITM_TID)/mitm.lst
mkdir -p dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)
cp bluetooth-mitm/bluetooth-mitm.nsp dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/exefs.nsp
echo "btdrv" > dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/mitm.lst
echo "btm" > dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/mitm.lst
mkdir -p dist/atmosphere/contents/$(BTDRVMITM_TID)/flags
touch dist/atmosphere/contents/$(BTDRVMITM_TID)/flags/boot2.flag
mkdir -p dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/flags
touch dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/flags/boot2.flag
cp -r exefs_patches dist/atmosphere/

View file

@ -1,5 +1,5 @@
{
"name": "btdrv.mitm",
"name": "bluetooth.mitm",
"title_id": "0x010000000000bd00",
"title_id_range_min": "0x010000000000bd00",
"title_id_range_max": "0x010000000000bd00",

View file

@ -16,8 +16,9 @@
*/
#include <switch.h>
#include <stratosphere.hpp>
#include "btdrv_mitm_service.hpp"
#include "bluetooth/bluetooth_events.hpp"
#include "btdrv_mitm/btdrv_mitm_service.hpp"
#include "btm_mitm/btm_mitm_service.hpp"
#include "btdrv_mitm/bluetooth/bluetooth_events.hpp"
#include <memory>
extern "C" {