added the wiimote config to the dolphin.ini options.
also commented out the wiimote loading. cause the plugin can't do anything yet it wont load dolphin to start the game. I also renamed the wiimote plugin. removing the test part. yes its a test but in the end its meant to become a full wiimote plugin right? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@509 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f6e4aad94f
commit
af918f2e43
|
@ -132,10 +132,10 @@ bool Init(const SCoreStartupParameter _CoreParameter)
|
||||||
PanicAlert("Failed to load video plugin %s", g_CoreStartupParameter.m_strVideoPlugin.c_str());
|
PanicAlert("Failed to load video plugin %s", g_CoreStartupParameter.m_strVideoPlugin.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!PluginWiimote::LoadPlugin(g_CoreStartupParameter.m_strWiimotePlugin.c_str())) {
|
/*if (!PluginWiimote::LoadPlugin(g_CoreStartupParameter.m_strWiimotePlugin.c_str())) {
|
||||||
PanicAlert("Failed to load Wiimote plugin %s", g_CoreStartupParameter.m_strWiimotePlugin.c_str());
|
PanicAlert("Failed to load Wiimote plugin %s", g_CoreStartupParameter.m_strWiimotePlugin.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if (PluginDSP::DllDebugger)
|
if (PluginDSP::DllDebugger)
|
||||||
|
|
|
@ -62,6 +62,7 @@ void SConfig::SaveSettings()
|
||||||
ini.Set("Core", "GFXPlugin", m_LocalCoreStartupParameter.m_strVideoPlugin);
|
ini.Set("Core", "GFXPlugin", m_LocalCoreStartupParameter.m_strVideoPlugin);
|
||||||
ini.Set("Core", "DSPPlugin", m_LocalCoreStartupParameter.m_strDSPPlugin);
|
ini.Set("Core", "DSPPlugin", m_LocalCoreStartupParameter.m_strDSPPlugin);
|
||||||
ini.Set("Core", "PadPlugin", m_LocalCoreStartupParameter.m_strPadPlugin);
|
ini.Set("Core", "PadPlugin", m_LocalCoreStartupParameter.m_strPadPlugin);
|
||||||
|
ini.Set("Core", "WiiMotePlugin", m_LocalCoreStartupParameter.m_strWiimotePlugin);
|
||||||
|
|
||||||
ini.Set("Core", "HLEBios", m_LocalCoreStartupParameter.bHLEBios);
|
ini.Set("Core", "HLEBios", m_LocalCoreStartupParameter.bHLEBios);
|
||||||
ini.Set("Core", "UseDynarec", m_LocalCoreStartupParameter.bUseJIT);
|
ini.Set("Core", "UseDynarec", m_LocalCoreStartupParameter.bUseJIT);
|
||||||
|
@ -85,6 +86,7 @@ void SConfig::LoadSettings()
|
||||||
ini.Get("Default", "GFXPlugin", &m_DefaultGFXPlugin);
|
ini.Get("Default", "GFXPlugin", &m_DefaultGFXPlugin);
|
||||||
ini.Get("Default", "DSPPlugin", &m_DefaultDSPPlugin);
|
ini.Get("Default", "DSPPlugin", &m_DefaultDSPPlugin);
|
||||||
ini.Get("Default", "PadPlugin", &m_DefaultPADPlugin);
|
ini.Get("Default", "PadPlugin", &m_DefaultPADPlugin);
|
||||||
|
ini.Get("Default", "WiiMotePlugin", &m_DefaultWiiMotePlugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
// misc
|
// misc
|
||||||
|
@ -112,7 +114,7 @@ void SConfig::LoadSettings()
|
||||||
ini.Get("Core", "GFXPlugin", &m_LocalCoreStartupParameter.m_strVideoPlugin, m_DefaultGFXPlugin.c_str());
|
ini.Get("Core", "GFXPlugin", &m_LocalCoreStartupParameter.m_strVideoPlugin, m_DefaultGFXPlugin.c_str());
|
||||||
ini.Get("Core", "DSPPlugin", &m_LocalCoreStartupParameter.m_strDSPPlugin, m_DefaultDSPPlugin.c_str());
|
ini.Get("Core", "DSPPlugin", &m_LocalCoreStartupParameter.m_strDSPPlugin, m_DefaultDSPPlugin.c_str());
|
||||||
ini.Get("Core", "PadPlugin", &m_LocalCoreStartupParameter.m_strPadPlugin, m_DefaultPADPlugin.c_str());
|
ini.Get("Core", "PadPlugin", &m_LocalCoreStartupParameter.m_strPadPlugin, m_DefaultPADPlugin.c_str());
|
||||||
|
ini.Get("Core", "WiiMotePlugin", &m_LocalCoreStartupParameter.m_strWiimotePlugin, m_DefaultWiiMotePlugin.c_str());
|
||||||
ini.Get("Core", "HLEBios", &m_LocalCoreStartupParameter.bHLEBios, true);
|
ini.Get("Core", "HLEBios", &m_LocalCoreStartupParameter.bHLEBios, true);
|
||||||
ini.Get("Core", "UseDynarec", &m_LocalCoreStartupParameter.bUseJIT, true);
|
ini.Get("Core", "UseDynarec", &m_LocalCoreStartupParameter.bUseJIT, true);
|
||||||
ini.Get("Core", "UseDualCore", &m_LocalCoreStartupParameter.bUseDualCore, false);
|
ini.Get("Core", "UseDualCore", &m_LocalCoreStartupParameter.bUseDualCore, false);
|
||||||
|
|
|
@ -29,6 +29,7 @@ struct SConfig
|
||||||
std::string m_DefaultGFXPlugin;
|
std::string m_DefaultGFXPlugin;
|
||||||
std::string m_DefaultDSPPlugin;
|
std::string m_DefaultDSPPlugin;
|
||||||
std::string m_DefaultPADPlugin;
|
std::string m_DefaultPADPlugin;
|
||||||
|
std::string m_DefaultWiiMotePlugin;
|
||||||
|
|
||||||
// name of the last used filename
|
// name of the last used filename
|
||||||
std::string m_LastFilename;
|
std::string m_LastFilename;
|
||||||
|
|
|
@ -481,6 +481,13 @@ void CFrame::OnPluginPAD(wxCommandEvent& WXUNUSED (event))
|
||||||
SConfig::GetInstance().m_LocalCoreStartupParameter.m_strPadPlugin
|
SConfig::GetInstance().m_LocalCoreStartupParameter.m_strPadPlugin
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
void CFrame::OnPluginWiiMote(wxCommandEvent& WXUNUSED (event))
|
||||||
|
{
|
||||||
|
CPluginManager::GetInstance().OpenConfig(
|
||||||
|
GetHandle(),
|
||||||
|
SConfig::GetInstance().m_LocalCoreStartupParameter.m_strWiimotePlugin
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
void CFrame::OnBrowse(wxCommandEvent& WXUNUSED (event))
|
void CFrame::OnBrowse(wxCommandEvent& WXUNUSED (event))
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,6 +58,7 @@ class CFrame
|
||||||
void OnPluginGFX(wxCommandEvent& event);
|
void OnPluginGFX(wxCommandEvent& event);
|
||||||
void OnPluginDSP(wxCommandEvent& event);
|
void OnPluginDSP(wxCommandEvent& event);
|
||||||
void OnPluginPAD(wxCommandEvent& event);
|
void OnPluginPAD(wxCommandEvent& event);
|
||||||
|
void OnPluginWiiMote(wxCommandEvent& event);
|
||||||
void OnOpen(wxCommandEvent& event);
|
void OnOpen(wxCommandEvent& event);
|
||||||
void OnPlay(wxCommandEvent& event);
|
void OnPlay(wxCommandEvent& event);
|
||||||
void OnStop(wxCommandEvent& event);
|
void OnStop(wxCommandEvent& event);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<VisualStudioProject
|
<VisualStudioProject
|
||||||
ProjectType="Visual C++"
|
ProjectType="Visual C++"
|
||||||
Version="8,00"
|
Version="8,00"
|
||||||
Name="Plugin_Wiimote_Test"
|
Name="Plugin_Wiimote"
|
||||||
ProjectGUID="{8D612734-FAA5-4B8A-804F-4DEA2367D495}"
|
ProjectGUID="{8D612734-FAA5-4B8A-804F-4DEA2367D495}"
|
||||||
RootNamespace="Plugin_Wiimote_Test"
|
RootNamespace="Plugin_Wiimote_Test"
|
||||||
Keyword="Win32Proj"
|
Keyword="Win32Proj"
|
||||||
|
@ -232,7 +232,7 @@
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="comctl32.lib winmm.lib rpcrt4.lib"
|
AdditionalDependencies="comctl32.lib winmm.lib rpcrt4.lib"
|
||||||
OutputFile="..\..\..\Binary\Win32/Plugins\Plugin_WiimoteTest.dll"
|
OutputFile="..\..\..\Binary\Win32\Plugins\Plugin_Wiimote.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateManifest="false"
|
GenerateManifest="false"
|
||||||
GenerateDebugInformation="false"
|
GenerateDebugInformation="false"
|
||||||
|
@ -276,6 +276,7 @@
|
||||||
>
|
>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreBuildEventTool"
|
Name="VCPreBuildEventTool"
|
||||||
|
CommandLine=""
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCustomBuildTool"
|
Name="VCCustomBuildTool"
|
||||||
|
@ -314,7 +315,7 @@
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="comctl32.lib winmm.lib rpcrt4.lib"
|
AdditionalDependencies="comctl32.lib winmm.lib rpcrt4.lib"
|
||||||
OutputFile="..\..\..\Binary\Win32/Plugins\Plugin_WiimoteTest.dll"
|
OutputFile="..\..\..\Binary\x64\Plugins\Plugin_WiimoteTest.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
GenerateManifest="false"
|
GenerateManifest="false"
|
||||||
GenerateDebugInformation="false"
|
GenerateDebugInformation="false"
|
||||||
|
|
|
@ -2,9 +2,9 @@ Import('env')
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
output = "../../../../Binary/mac/Plugins/Plugin_Wiimote_Test.so"
|
output = "../../../../Binary/mac/Plugins/Plugin_Wiimote.so"
|
||||||
else:
|
else:
|
||||||
output = "../../../../Binary/linux/Plugins/Plugin_Wiimote_Test.so"
|
output = "../../../../Binary/linux/Plugins/Plugin_Wiimote.so"
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
"main.cpp",
|
"main.cpp",
|
||||||
|
|
Loading…
Reference in New Issue