mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
[DVD] Signedness fix in realistic timing path
This commit is contained in:
@ -1301,7 +1301,7 @@ u64 SimulateDiscReadTime(u64 offset, u32 length)
|
||||
u64 disk_read_duration = CalculateRawDiscReadTime(offset, length) +
|
||||
SystemTimers::GetTicksPerSecond() / 1000 * DISC_ACCESS_TIME_MS;
|
||||
|
||||
if (offset + length - s_last_read_offset > 1024 * 1024)
|
||||
if (offset + length > s_last_read_offset + 1024 * 1024)
|
||||
{
|
||||
// No buffer; just use the simple seek time + read time.
|
||||
DEBUG_LOG(DVDINTERFACE, "Seeking %" PRId64 " bytes",
|
||||
|
Reference in New Issue
Block a user