diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-10-28 22:51:00 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-10-28 22:51:00 +0000 |
| commit | 2a99dfb2615d445eddfd170a0b9aafacfa4edbc4 (patch) | |
| tree | 2bed604f65b4a1f6e98414a39df44ff2b7e35705 /Source/Core | |
| parent | f3681c0e1b606a3199a8239c5af490503c447484 (diff) | |
tiny change: get rid of a couple of uses of "long". better to use int or the explicitly sized typedefs. possibly really minor speedup of zelda ucode audio on linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4474 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Src/HW/DVDInterface.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/Core/Src/HW/DVDInterface.cpp b/Source/Core/Core/Src/HW/DVDInterface.cpp index 95b8e3a970..daf69c1a09 100644 --- a/Source/Core/Core/Src/HW/DVDInterface.cpp +++ b/Source/Core/Core/Src/HW/DVDInterface.cpp @@ -715,7 +715,7 @@ void ExecuteCommand(UDICR& _DICR) else*/ if ((offset < 0) || ((offset + len) > 0x40) || len > 0x40) { - unsigned long addr = m_DIMAR.Address; + u32 addr = m_DIMAR.Address; if (iDVDOffset == 0x84800000) { ERROR_LOG(DVDINTERFACE, "FIRMWARE UPLOAD"); } else { @@ -731,7 +731,7 @@ void ExecuteCommand(UDICR& _DICR) } else { - unsigned long addr = m_DIMAR.Address; + u32 addr = m_DIMAR.Address; memcpy(media_buffer + offset, Memory::GetPointer(addr), len); while (len >= 4) { @@ -769,7 +769,8 @@ void ExecuteCommand(UDICR& _DICR) break; case 0x100: { - static int percentage; + // urgh + static int percentage = 0; static int status = 0; percentage++; if (percentage > 100) |
