Rename the get-memory-pointer functions to make it clear where CPU exceptions can happen.

This commit is contained in:
Henrik Rydgård committed 2026-08-12 14:06:16 +02:00
1 parent e9a3449ede
commit c5e4d0d90d
53 files changed
+224 -224

No files matched your search

+1 -1
View File
@@ -1077,7 +1077,7 @@ int MediaEngine::getNextAudioFrame(u8 **buf, int *headerCode1, int *headerCode2)
}
int MediaEngine::getAudioSamples(u32 bufferPtr) {
int16_t *buffer = (int16_t *)Memory::GetPointerWriteRange(bufferPtr, 8192);
int16_t *buffer = (int16_t *)Memory::GetPointerWriteRangeOrException(bufferPtr, 8192);
if (buffer == nullptr) {
ERROR_LOG_REPORT(Log::ME, "Ignoring bad audio decode address %08x during video playback", bufferPtr);
}