diff options
| author | Scott Mansell <phiren@gmail.com> | 2015-09-08 12:43:11 +1200 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2015-09-08 12:43:11 +1200 |
| commit | 332e81d2d7f64dd31401cbdedf4586361e16aef1 (patch) | |
| tree | f4b0be705e98d80b2532c3b92f70240501edcd79 /Source/Core | |
| parent | 5520155e142a1aa691f695b2d25413ddf16a0564 (diff) | |
| parent | 5c454379aecfac0649624c36483a926653f21111 (diff) | |
Merge pull request #2984 from JosJuice/dvdinterface-round-down
DVDInterface: Use ROUND_DOWN
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/HW/DVDInterface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Core/HW/DVDInterface.cpp b/Source/Core/Core/HW/DVDInterface.cpp index 572a660e97..92779913f2 100644 --- a/Source/Core/Core/HW/DVDInterface.cpp +++ b/Source/Core/Core/HW/DVDInterface.cpp @@ -11,6 +11,7 @@ #include "Common/ChunkFile.h" #include "Common/CommonTypes.h" +#include "Common/MathUtil.h" #include "Core/ConfigManager.h" #include "Core/CoreTiming.h" @@ -1397,7 +1398,7 @@ u64 SimulateDiscReadTime(u64 offset, u32 length) } } - g_last_read_offset = (offset + length - 2048) & ~2047; + g_last_read_offset = ROUND_DOWN(offset + length - 2048, 2048); return ticks_until_completion; } |
