From 513b86f8ed6026b8d13702f6de82c1a7edfc5e6c Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Tue, 24 Feb 2026 21:04:48 +0100 Subject: [PATCH] Translate memory allocation failure error --- src/m_Do/m_Do_machine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/m_Do/m_Do_machine.cpp b/src/m_Do/m_Do_machine.cpp index 0dcee93d4a..2811cff7b1 100644 --- a/src/m_Do/m_Do_machine.cpp +++ b/src/m_Do/m_Do_machine.cpp @@ -344,9 +344,15 @@ static void myMemoryErrorRoutine(void* p_heap, u32 size, int alignment) { if (notSolidHeap) { // "Error: Can't allocate memory %d(0x%x)Bytes, %d Byte Alignment from %08x\n" +#if TARGET_PC + OSReport_Error( + "Error: Can't allocate memory %d(0x%x)Bytes, %d Byte Alignment from %08x\n", + size, size, alignment, p_heap); +#else OSReport_Error( "エラー: メモリを確保できません %d(0x%x)バイト、 %d バイトアライメント from %08x\n", size, size, alignment, p_heap); +#endif } union {