mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Merge pull request #2984 from JosJuice/dvdinterface-round-down
DVDInterface: Use ROUND_DOWN
This commit is contained in:
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include "Common/ChunkFile.h"
|
#include "Common/ChunkFile.h"
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
#include "Common/MathUtil.h"
|
||||||
|
|
||||||
#include "Core/ConfigManager.h"
|
#include "Core/ConfigManager.h"
|
||||||
#include "Core/CoreTiming.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;
|
return ticks_until_completion;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user