Libretro: Fixed compilation error/warnings

This commit is contained in:
Sour 2020-02-24 08:00:57 -05:00
parent 2e8a13e920
commit 1a9fe9baf3
3 changed files with 4 additions and 1 deletions

View file

@ -465,6 +465,8 @@ AddressInfo Debugger::GetRelativeAddress(AddressInfo absAddress, CpuType cpuType
MemoryMappings* mappings = nullptr;
switch(cpuType) {
case CpuType::Cpu: mappings = _memoryManager->GetMemoryMappings(); break;
case CpuType::Spc: break;
case CpuType::NecDsp: break;
case CpuType::Sa1: mappings = _cart->GetSa1()->GetMemoryMappings(); break;
case CpuType::Gsu: mappings = _cart->GetGsu()->GetMemoryMappings(); break;
case CpuType::Cx4: mappings = _cart->GetCx4()->GetMemoryMappings(); break;

View file

@ -32,7 +32,7 @@ void NecDspDebugger::Reset()
void NecDspDebugger::ProcessRead(uint16_t addr, uint8_t value, MemoryOperationType type)
{
AddressInfo addressInfo = { (uint32_t)addr, type == MemoryOperationType::ExecOpCode ? SnesMemoryType::DspProgramRom : SnesMemoryType::DspDataRom };
AddressInfo addressInfo = { (int32_t)addr, type == MemoryOperationType::ExecOpCode ? SnesMemoryType::DspProgramRom : SnesMemoryType::DspDataRom };
MemoryOperationInfo operation { (uint32_t)addr, value, type };
if(type == MemoryOperationType::ExecOpCode) {

View file

@ -80,6 +80,7 @@ SOURCES_CXX := $(LIBRETRO_DIR)/libretro.cpp \
$(CORE_DIR)/Msu1.cpp \
$(CORE_DIR)/Multitap.cpp \
$(CORE_DIR)/NecDsp.cpp \
$(CORE_DIR)/NecDspDebugger.cpp \
$(CORE_DIR)/NecDspDisUtils.cpp \
$(CORE_DIR)/NotificationManager.cpp \
$(CORE_DIR)/NtscFilter.cpp \