Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #717 from lioncash/unused
Core: Remove unused parameters in Movie
  • Loading branch information
lioncash committed Aug 2, 2014
2 parents 9f8e1e2 + 41af9a8 commit a77d397
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp
Expand Up @@ -622,7 +622,7 @@ void Wiimote::Update()

const ReportFeatures& rptf = reporting_mode_features[m_reporting_mode - WM_REPORT_CORE];
s8 rptf_size = rptf.size;
if (Movie::IsPlayingInput() && Movie::PlayWiimote(m_index, data, rptf, m_reg_ir.mode))
if (Movie::IsPlayingInput() && Movie::PlayWiimote(m_index, data, rptf))
{
if (rptf.core)
m_status.buttons = *(wm_core*)(data + rptf.core);
Expand Down Expand Up @@ -734,7 +734,7 @@ void Wiimote::Update()
}
if (!Movie::IsPlayingInput())
{
Movie::CheckWiimoteStatus(m_index, data, rptf, m_reg_ir.mode);
Movie::CheckWiimoteStatus(m_index, data, rptf);
}

// don't send a data report if auto reporting is off
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/Movie.cpp
Expand Up @@ -656,7 +656,7 @@ void RecordInput(GCPadStatus* PadStatus, int controllerID)
g_totalBytes = g_currentByte;
}

void CheckWiimoteStatus(int wiimote, u8 *data, const WiimoteEmu::ReportFeatures& rptf, int irMode)
void CheckWiimoteStatus(int wiimote, u8 *data, const WiimoteEmu::ReportFeatures& rptf)
{
u8* const coreData = rptf.core?(data+rptf.core):nullptr;
u8* const accelData = rptf.accel?(data+rptf.accel):nullptr;
Expand Down Expand Up @@ -1034,7 +1034,7 @@ void PlayController(GCPadStatus* PadStatus, int controllerID)
CheckInputEnd();
}

bool PlayWiimote(int wiimote, u8 *data, const WiimoteEmu::ReportFeatures& rptf, int irMode)
bool PlayWiimote(int wiimote, u8 *data, const WiimoteEmu::ReportFeatures& rptf)
{
if (!IsPlayingInput() || !IsUsingWiimote(wiimote) || tmpInput == nullptr)
return false;
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/Movie.h
Expand Up @@ -161,15 +161,15 @@ bool PlayInput(const std::string& filename);
void LoadInput(const std::string& filename);
void ReadHeader();
void PlayController(GCPadStatus* PadStatus, int controllerID);
bool PlayWiimote(int wiimote, u8* data, const struct WiimoteEmu::ReportFeatures& rptf, int irMode);
bool PlayWiimote(int wiimote, u8* data, const struct WiimoteEmu::ReportFeatures& rptf);
void EndPlayInput(bool cont);
void SaveRecording(const std::string& filename);
void DoState(PointerWrap &p);
void CheckMD5();
void GetMD5();
void Shutdown();
void CheckPadStatus(GCPadStatus* PadStatus, int controllerID);
void CheckWiimoteStatus(int wiimote, u8* data, const struct WiimoteEmu::ReportFeatures& rptf, int irMode);
void CheckWiimoteStatus(int wiimote, u8* data, const struct WiimoteEmu::ReportFeatures& rptf);

std::string GetInputDisplay();

Expand Down

0 comments on commit a77d397

Please sign in to comment.