mirror of
https://github.com/patchzyy/wiicompiled
synced 2026-10-24 14:56:35 -04:00
Real Wii Remote support over Bluetooth (#323)
* pass real wii remotes through emulated bluetooth * build bluetooth tests on macos ci * address review comments * cancel replaced bluetooth reads
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "memory.h"
|
||||
#include "hle/hollywood_gpio.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
@@ -643,6 +644,9 @@ uint16_t MemoryInline::Read16Slow(uint32_t addr) {
|
||||
|
||||
uint32_t MemoryInline::Read32Slow(uint32_t addr) {
|
||||
if (IsMmioAddress(addr)) {
|
||||
if (uint32_t value = 0; HollywoodGpio_Read32(addr, value)) {
|
||||
return value;
|
||||
}
|
||||
ThrowMmioReadBlocked(addr, sizeof(uint32_t));
|
||||
}
|
||||
ResolveDeferredReads(addr, sizeof(uint32_t));
|
||||
@@ -708,6 +712,9 @@ void MemoryInline::Write32Slow(uint32_t addr, uint32_t val) {
|
||||
return;
|
||||
}
|
||||
if (IsMmioAddress(addr)) {
|
||||
if (HollywoodGpio_Write32(addr, val)) {
|
||||
return;
|
||||
}
|
||||
throw Memory::AccessViolation(addr, sizeof(val), "MMIO write blocked (non-GPU)");
|
||||
}
|
||||
WriteScalar(addr, val);
|
||||
|
||||
Reference in New Issue
Block a user