Skip to content

Commit

Permalink
Merge pull request #2258 from JosJuice/revert-2256-Dolphin-Pro
Browse files Browse the repository at this point in the history
Revert "Dolphin Pro" April Fools joke that never should've been merged
  • Loading branch information
delroth committed Apr 1, 2015
2 parents d50d8cb + 0deb9f5 commit 1aec542
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 38 deletions.
6 changes: 0 additions & 6 deletions Source/Core/Core/ConfigManager.cpp
Expand Up @@ -354,7 +354,6 @@ void SConfig::SaveCoreSettings(IniFile& ini)
core->Set("GFXBackend", m_LocalCoreStartupParameter.m_strVideoBackend);
core->Set("GPUDeterminismMode", m_LocalCoreStartupParameter.m_strGPUDeterminismMode);
core->Set("GameCubeAdapter", m_GameCubeAdapter);
core->Set("DolphinPro", m_DolphinPro);
}

void SConfig::SaveMovieSettings(IniFile& ini)
Expand Down Expand Up @@ -622,11 +621,6 @@ void SConfig::LoadCoreSettings(IniFile& ini)
core->Get("GFXBackend", &m_LocalCoreStartupParameter.m_strVideoBackend, "");
core->Get("GPUDeterminismMode", &m_LocalCoreStartupParameter.m_strGPUDeterminismMode, "auto");
core->Get("GameCubeAdapter", &m_GameCubeAdapter, true);
#ifdef DOLPHINPRO
m_DolphinPro = true;
#else
core->Get("DolphinPro", &m_DolphinPro, false);
#endif
}

void SConfig::LoadMovieSettings(IniFile& ini)
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/Core/ConfigManager.h
Expand Up @@ -119,8 +119,6 @@ struct SConfig : NonCopyable

SysConf* m_SYSCONF;

bool m_DolphinPro;

// Save settings
void SaveSettings();

Expand Down
2 changes: 0 additions & 2 deletions Source/Core/Core/HW/Wiimote.cpp
Expand Up @@ -25,8 +25,6 @@ InputConfig* GetConfig()

void Shutdown()
{
s_config.SaveConfig();

for (const ControllerEmu* i : s_config.controllers)
{
delete i;
Expand Down
20 changes: 0 additions & 20 deletions Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.cpp
Expand Up @@ -21,8 +21,6 @@
#include "Core/HW/WiimoteEmu/Attachment/Nunchuk.h"
#include "Core/HW/WiimoteEmu/Attachment/Turntable.h"
#include "Core/HW/WiimoteReal/WiimoteReal.h"
#include "Core/IPC_HLE/WII_IPC_HLE_Device_usb.h"
#include "Core/IPC_HLE/WII_IPC_HLE_WiiMote.h"

namespace
{
Expand Down Expand Up @@ -304,7 +302,6 @@ Wiimote::Wiimote( const unsigned int index )
m_options->settings.emplace_back(new ControlGroup::Setting(_trans("Upright Wiimote"), false));
m_options->settings.emplace_back(new ControlGroup::IterateUI(_trans("Iterative Input")));
m_options->settings.emplace_back(new ControlGroup::Setting(_trans("Speaker Pan"), 0, -127, 127));
m_options->settings.emplace_back(new ControlGroup::Setting(_trans("Battery"), 95, 0, 255));

// TODO: This value should probably be re-read if SYSCONF gets changed
m_sensor_bar_on_top = SConfig::GetInstance().m_SYSCONF->GetData<u8>("BT.BAR") != 0;
Expand Down Expand Up @@ -639,23 +636,6 @@ void Wiimote::Update()
if (Step())
return;

m_status.battery = (u8)(m_options->settings[5]->GetValue() * 100);
if (!m_status.battery)
{
GetUsbPointer()->AccessWiiMote(m_index | 0x100)->Activate(false);
return;
}

static u32 batteryCounter = 0;
// drop battery by 1 every 144000 times input is polled. At 200 hz polling, this is once per 12 mins. Gives 19 hours
// of battery life from the default of 95, or 51 hours at the max of 255.
if (++batteryCounter > 144000)
{
m_status.battery--;
m_options->settings[5]->SetValue(((ControlState)m_status.battery) / 100);
batteryCounter = 0;
}

u8 data[MAX_PAYLOAD];
memset(data, 0, sizeof(data));

Expand Down
9 changes: 1 addition & 8 deletions Source/Core/DolphinWX/InputConfigDiag.cpp
Expand Up @@ -946,14 +946,7 @@ ControlGroupBox::ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWin
setting->wxcontrol->Bind(wxEVT_SPINCTRL, &GamepadPage::AdjustSetting, eventsink);
options.push_back(setting);
wxBoxSizer* const szr = new wxBoxSizer(wxHORIZONTAL);
wxStaticText* nameBox = new wxStaticText(parent, wxID_ANY, wxGetTranslation(StrToWxStr(groupSetting->name)));
if (groupSetting->name == "Battery" && !SConfig::GetInstance().m_DolphinPro)
{
setting->wxcontrol->Disable();
nameBox->SetToolTip(wxGetTranslation("Upgrade to Dolphin Pro to recharge batteries."));
}

szr->Add(nameBox, 0, wxCENTER | wxRIGHT, 3);
szr->Add(new wxStaticText(parent, wxID_ANY, wxGetTranslation(StrToWxStr(groupSetting->name))), 0, wxCENTER | wxRIGHT, 3);
szr->Add(setting->wxcontrol, 0, wxRIGHT, 3);
Add(szr, 0, wxALL | wxCENTER, 3);
}
Expand Down
1 change: 1 addition & 0 deletions Source/Core/InputCommon/ControllerEmu.cpp
Expand Up @@ -219,6 +219,7 @@ ControllerEmu::Cursor::Cursor(const std::string& _name)
settings.emplace_back(new Setting(_trans("Center"), 0.5));
settings.emplace_back(new Setting(_trans("Width"), 0.5));
settings.emplace_back(new Setting(_trans("Height"), 0.5));

}

void ControllerEmu::LoadDefaults(const ControllerInterface &ciface)
Expand Down

0 comments on commit 1aec542

Please sign in to comment.