From d9d711d9d54cf8e719cb87fe342fd64e0978d289 Mon Sep 17 00:00:00 2001
From: Sonicadvance1 <sonicadvance1@gmail.com>
Date: Tue, 17 Mar 2009 08:58:52 +0000
Subject: [PATCH] Code within #if 0 that if enabled, makes more mail come with
 zelda uCodes.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2671 8ced0084-cf51-0410-be5f-012b33b47a6e
---
 .../Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.cpp       | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.cpp
index d619fba669..43cfe66c61 100644
--- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.cpp
+++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.cpp
@@ -80,7 +80,20 @@ void CUCode_Zelda::HandleMail(u32 _uMail)
 			m_step = 0;
 		} else {
 			// Release halt
+			#if 0
+			// The _uMail seems to be 1,2,3 when bitshifted right 16
+			// after 3, we get some unknown values, probably supposed to be in the list
+			if((_uMail >> 16) == 1)
+				m_rMailHandler.PushMail(DSP_RESUME);
+			else if((_uMail >> 16) == 2)
+				m_rMailHandler.PushMail(DSP_YIELD);
+			else if((_uMail >> 16) == 3)
+				m_rMailHandler.PushMail(DSP_DONE);
+			else
+				{ /*Unknown values here*/}
+			#else
 			m_rMailHandler.PushMail(DSP_RESUME);
+			#endif
 			g_dspInitialize.pGenerateDSPInterrupt();
 		}
 	}