mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Fix a couple apparent typos. a) Don't pass ASCII string to Unicode function. b) If you type "(128 / 1000)" in C++, it will be treated as "0" because the integer division gets truncated. Fixed.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7318 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -30,11 +30,11 @@
|
||||
#include "../VolumeHandler.h"
|
||||
|
||||
// Disc transfer rate measured in bytes per second
|
||||
#define DISC_TRANSFER_RATE_GC (3125 * 1024)
|
||||
#define DISC_TRANSFER_RATE_WII (7926 * 1024)
|
||||
static const u32 DISC_TRANSFER_RATE_GC = 3125 * 1024;
|
||||
static const u32 DISC_TRANSFER_RATE_WII = 7926 * 1024;
|
||||
|
||||
// Disc access time measured in seconds
|
||||
#define DISC_ACCESS_TIME (128 / 1000)
|
||||
// Disc access time measured in milliseconds
|
||||
static const u32 DISC_ACCESS_TIME_MS = 128;
|
||||
|
||||
namespace DVDInterface
|
||||
{
|
||||
@ -466,7 +466,7 @@ void Write32(const u32 _iValue, const u32 _iAddress)
|
||||
{
|
||||
u64 ticksUntilTC = m_DILENGTH.Length *
|
||||
(SystemTimers::GetTicksPerSecond() / (SConfig::GetInstance().m_LocalCoreStartupParameter.bWii?DISC_TRANSFER_RATE_WII:DISC_TRANSFER_RATE_GC)) +
|
||||
(SystemTimers::GetTicksPerSecond() * DISC_ACCESS_TIME);
|
||||
(SystemTimers::GetTicksPerSecond() * DISC_ACCESS_TIME_MS / 1000);
|
||||
CoreTiming::ScheduleEvent((int)ticksUntilTC, tc);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user