summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-08-15 20:14:41 -0700
committerGravatar GitHub2017-08-15 20:14:41 -0700
commit21204ba488fd00be4cc6e44998c5d7c8bd0fec91 (patch)
tree2214fa3e9cd5a17f50ccbae89a71c4e1d74469e7
parentMerge pull request #2879 from danzel/patch-1 (diff)
parentdsp_dsp: Remove size assertion in LoadComponent (diff)
downloadyuzu-21204ba488fd00be4cc6e44998c5d7c8bd0fec91.tar.gz
yuzu-21204ba488fd00be4cc6e44998c5d7c8bd0fec91.tar.xz
yuzu-21204ba488fd00be4cc6e44998c5d7c8bd0fec91.zip
Merge pull request #2881 from MerryMage/dsp-firm-check
dsp_dsp: Remove size assertion in LoadComponent
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/dsp_dsp.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/dsp_dsp.cpp b/src/core/hle/service/dsp_dsp.cpp
index 7d746054f..42f8950f9 100644
--- a/src/core/hle/service/dsp_dsp.cpp
+++ b/src/core/hle/service/dsp_dsp.cpp
@@ -147,9 +147,10 @@ static void LoadComponent(Service::Interface* self) {
147 LOG_INFO(Service_DSP, "Firmware hash: %#" PRIx64, 147 LOG_INFO(Service_DSP, "Firmware hash: %#" PRIx64,
148 Common::ComputeHash64(component_data.data(), component_data.size())); 148 Common::ComputeHash64(component_data.data(), component_data.size()));
149 // Some versions of the firmware have the location of DSP structures listed here. 149 // Some versions of the firmware have the location of DSP structures listed here.
150 ASSERT(size > 0x37C); 150 if (size > 0x37C) {
151 LOG_INFO(Service_DSP, "Structures hash: %#" PRIx64, 151 LOG_INFO(Service_DSP, "Structures hash: %#" PRIx64,
152 Common::ComputeHash64(component_data.data() + 0x340, 60)); 152 Common::ComputeHash64(component_data.data() + 0x340, 60));
153 }
153 154
154 LOG_WARNING(Service_DSP, 155 LOG_WARNING(Service_DSP,
155 "(STUBBED) called size=0x%X, prog_mask=0x%08X, data_mask=0x%08X, buffer=0x%08X", 156 "(STUBBED) called size=0x%X, prog_mask=0x%08X, data_mask=0x%08X, buffer=0x%08X",