Core: Remove unused parameters in Movie
This commit is contained in:
parent
da2833c0e6
commit
41af9a81a5
|
@ -622,7 +622,7 @@ void Wiimote::Update()
|
||||||
|
|
||||||
const ReportFeatures& rptf = reporting_mode_features[m_reporting_mode - WM_REPORT_CORE];
|
const ReportFeatures& rptf = reporting_mode_features[m_reporting_mode - WM_REPORT_CORE];
|
||||||
s8 rptf_size = rptf.size;
|
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)
|
if (rptf.core)
|
||||||
m_status.buttons = *(wm_core*)(data + rptf.core);
|
m_status.buttons = *(wm_core*)(data + rptf.core);
|
||||||
|
@ -734,7 +734,7 @@ void Wiimote::Update()
|
||||||
}
|
}
|
||||||
if (!Movie::IsPlayingInput())
|
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
|
// don't send a data report if auto reporting is off
|
||||||
|
|
|
@ -656,7 +656,7 @@ void RecordInput(GCPadStatus* PadStatus, int controllerID)
|
||||||
g_totalBytes = g_currentByte;
|
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 coreData = rptf.core?(data+rptf.core):nullptr;
|
||||||
u8* const accelData = rptf.accel?(data+rptf.accel):nullptr;
|
u8* const accelData = rptf.accel?(data+rptf.accel):nullptr;
|
||||||
|
@ -1034,7 +1034,7 @@ void PlayController(GCPadStatus* PadStatus, int controllerID)
|
||||||
CheckInputEnd();
|
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)
|
if (!IsPlayingInput() || !IsUsingWiimote(wiimote) || tmpInput == nullptr)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -161,7 +161,7 @@ bool PlayInput(const std::string& filename);
|
||||||
void LoadInput(const std::string& filename);
|
void LoadInput(const std::string& filename);
|
||||||
void ReadHeader();
|
void ReadHeader();
|
||||||
void PlayController(GCPadStatus* PadStatus, int controllerID);
|
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 EndPlayInput(bool cont);
|
||||||
void SaveRecording(const std::string& filename);
|
void SaveRecording(const std::string& filename);
|
||||||
void DoState(PointerWrap &p);
|
void DoState(PointerWrap &p);
|
||||||
|
@ -169,7 +169,7 @@ void CheckMD5();
|
||||||
void GetMD5();
|
void GetMD5();
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
void CheckPadStatus(GCPadStatus* PadStatus, int controllerID);
|
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();
|
std::string GetInputDisplay();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue