Hi!
At first dolphin is a great emulator! Thanks!
I will use 2 or more wiimotes with the emulator.
I´ve downloaded the SVN 4560.
I changed the code below.
2 wiimotes were initiliazed. (LED 4 is shining on both wii motes)
I can save the setting for the 2 motes, but it don´t loads the settings again.
When i start a game only one wiimote will assign with a player.
The other wiimote will not assigned. (No LED is shining)
PS. I have only two wiimotes at this moment.
I can test it only with 2 wiimotes.
My code changes
Core\src\CoreParameters.h
...
#include "IniFile.h"
#include <string>
#define MAXPADS 4
#define MAXWIIMOTES 4 //old value 1
struct SCoreStartupParameter...
I changed the MAX_WIIMOTES value from 1 to 4
Plugin_Wiimotes\src\main.h
...#endif
// Definitions and declarations
void DoInitialize();
int GetUpdateRate();
void InterruptDebugging(bool Emu, const void* _pData);
void ReadDebugging(bool Emu, const void* _pData, int Size);
bool IsFocus();
#define MAX_WIIMOTES 4
....
I changed the MAX_WIIMOTES value from 1 to 4
Plugin_Wiimotes\src\config.cpp
...
void Config::Load(bool ChangePad)
{
Loaded = true;
std:tring temp;
IniFile iniFile;
iniFile.Load(FULL_CONFIG_DIR "Wiimote.ini");
// General
iniFile.Get("Settings", "SidewaysDPad", &bSidewaysDPad, false);
iniFile.Get("Settings", "ExtensionConnected", &iExtensionConnected, EXT_NONE);
iniFile.Get("Settings", "MotionPlusConnected", &bMotionPlusConnected, false);
// Real Wiimote
iniFile.Get("Real", "Connect", &bConnectRealWiimote, true);
iniFile.Get("Real", "Use", &bUseRealWiimote, true);
iniFile.Get("Real", "UpdateStatus", &bUpdateRealWiimote, true);
iniFile.Get("Real", "AccNeutralX", &iAccNeutralX, 0);
iniFile.Get("Real", "AccNeutralY", &iAccNeutralY, 0);
iniFile.Get("Real", "AccNeutralZ", &iAccNeutralZ, 0);
iniFile.Get("Real", "AccNunNeutralX", &iAccNunNeutralX, 0);
iniFile.Get("Real", "AccNunNeutralY", &iAccNunNeutralY, 0);
iniFile.Get("Real", "AccNunNeutralZ", &iAccNunNeutralZ, 0);
for (int i = 0; i < 4; i++) //old value 1
{
// Slot specific settings
char SectionName[32];
sprintf(SectionName, "Wiimote%i", i + 1);
iniFile.Get(SectionName, "NoTriggerFilter", &bNoTriggerFilter, false);
...
I changed the for (int i = 0; i < 1; i++) line to (int i = 0; i < 4; i++)
Plugin_Wiimotes\src\config.cpp
...
void Config::Save(int Slot)
{
IniFile iniFile;
iniFile.Load(FULL_CONFIG_DIR "Wiimote.ini");
iniFile.Set("Settings", "SidewaysDPad", bSidewaysDPad);
iniFile.Set("Settings", "ExtensionConnected", iExtensionConnected);
iniFile.Set("Settings", "MotionPlusConnected", bMotionPlusConnected);
iniFile.Set("Real", "Connect", bConnectRealWiimote);
iniFile.Set("Real", "Use", bUseRealWiimote);
iniFile.Set("Real", "UpdateStatus", bUpdateRealWiimote);
iniFile.Set("Real", "AccNeutralX", iAccNeutralX);
iniFile.Set("Real", "AccNeutralY", iAccNeutralY);
iniFile.Set("Real", "AccNeutralZ", iAccNeutralZ);
iniFile.Set("Real", "AccNunNeutralX", iAccNunNeutralX);
iniFile.Set("Real", "AccNunNeutralY", iAccNunNeutralY);
iniFile.Set("Real", "AccNunNeutralZ", iAccNunNeutralZ);
for (int i = 0; i < 4; i++) //old value 1
{
// Slot specific settings
char SectionName[32];
sprintf(SectionName, "Wiimote%i", i + 1);
iniFile.Set(SectionName, "Enabled", WiiMoteEmu:adMapping[i].enabled);
iniFile.Set(SectionName, "NoTriggerFilter", bNoTriggerFilter);
...
I changed the for (int i = 0; i < 1; i++) line to (int i = 0; i < 4; i++)
With this changes, i will get the tabs Wiimote 1 - 4.
The wii motes are initialized, but it don´t loads the setting for the others players. I can´t found these lines in the sourcecode. I can save the setting. The wiimotes.ini contains the values. Also its saved my settings, but won´t load.
Please can anybody help me?
Thanks!
Bye
Sincerely Bonkersdeluxe
At first dolphin is a great emulator! Thanks!
I will use 2 or more wiimotes with the emulator.
I´ve downloaded the SVN 4560.
I changed the code below.
2 wiimotes were initiliazed. (LED 4 is shining on both wii motes)
I can save the setting for the 2 motes, but it don´t loads the settings again.
When i start a game only one wiimote will assign with a player.
The other wiimote will not assigned. (No LED is shining)
PS. I have only two wiimotes at this moment.
I can test it only with 2 wiimotes.
My code changes
Core\src\CoreParameters.h
...
#include "IniFile.h"
#include <string>
#define MAXPADS 4
#define MAXWIIMOTES 4 //old value 1
struct SCoreStartupParameter...
I changed the MAX_WIIMOTES value from 1 to 4
Plugin_Wiimotes\src\main.h
...#endif
// Definitions and declarations
void DoInitialize();
int GetUpdateRate();
void InterruptDebugging(bool Emu, const void* _pData);
void ReadDebugging(bool Emu, const void* _pData, int Size);
bool IsFocus();
#define MAX_WIIMOTES 4
....
I changed the MAX_WIIMOTES value from 1 to 4
Plugin_Wiimotes\src\config.cpp
...
void Config::Load(bool ChangePad)
{
Loaded = true;
std:tring temp;
IniFile iniFile;
iniFile.Load(FULL_CONFIG_DIR "Wiimote.ini");
// General
iniFile.Get("Settings", "SidewaysDPad", &bSidewaysDPad, false);
iniFile.Get("Settings", "ExtensionConnected", &iExtensionConnected, EXT_NONE);
iniFile.Get("Settings", "MotionPlusConnected", &bMotionPlusConnected, false);
// Real Wiimote
iniFile.Get("Real", "Connect", &bConnectRealWiimote, true);
iniFile.Get("Real", "Use", &bUseRealWiimote, true);
iniFile.Get("Real", "UpdateStatus", &bUpdateRealWiimote, true);
iniFile.Get("Real", "AccNeutralX", &iAccNeutralX, 0);
iniFile.Get("Real", "AccNeutralY", &iAccNeutralY, 0);
iniFile.Get("Real", "AccNeutralZ", &iAccNeutralZ, 0);
iniFile.Get("Real", "AccNunNeutralX", &iAccNunNeutralX, 0);
iniFile.Get("Real", "AccNunNeutralY", &iAccNunNeutralY, 0);
iniFile.Get("Real", "AccNunNeutralZ", &iAccNunNeutralZ, 0);
for (int i = 0; i < 4; i++) //old value 1
{
// Slot specific settings
char SectionName[32];
sprintf(SectionName, "Wiimote%i", i + 1);
iniFile.Get(SectionName, "NoTriggerFilter", &bNoTriggerFilter, false);
...
I changed the for (int i = 0; i < 1; i++) line to (int i = 0; i < 4; i++)
Plugin_Wiimotes\src\config.cpp
...
void Config::Save(int Slot)
{
IniFile iniFile;
iniFile.Load(FULL_CONFIG_DIR "Wiimote.ini");
iniFile.Set("Settings", "SidewaysDPad", bSidewaysDPad);
iniFile.Set("Settings", "ExtensionConnected", iExtensionConnected);
iniFile.Set("Settings", "MotionPlusConnected", bMotionPlusConnected);
iniFile.Set("Real", "Connect", bConnectRealWiimote);
iniFile.Set("Real", "Use", bUseRealWiimote);
iniFile.Set("Real", "UpdateStatus", bUpdateRealWiimote);
iniFile.Set("Real", "AccNeutralX", iAccNeutralX);
iniFile.Set("Real", "AccNeutralY", iAccNeutralY);
iniFile.Set("Real", "AccNeutralZ", iAccNeutralZ);
iniFile.Set("Real", "AccNunNeutralX", iAccNunNeutralX);
iniFile.Set("Real", "AccNunNeutralY", iAccNunNeutralY);
iniFile.Set("Real", "AccNunNeutralZ", iAccNunNeutralZ);
for (int i = 0; i < 4; i++) //old value 1
{
// Slot specific settings
char SectionName[32];
sprintf(SectionName, "Wiimote%i", i + 1);
iniFile.Set(SectionName, "Enabled", WiiMoteEmu:adMapping[i].enabled);
iniFile.Set(SectionName, "NoTriggerFilter", bNoTriggerFilter);
...
I changed the for (int i = 0; i < 1; i++) line to (int i = 0; i < 4; i++)
With this changes, i will get the tabs Wiimote 1 - 4.
The wii motes are initialized, but it don´t loads the setting for the others players. I can´t found these lines in the sourcecode. I can save the setting. The wiimotes.ini contains the values. Also its saved my settings, but won´t load.
Please can anybody help me?
Thanks!
Bye
Sincerely Bonkersdeluxe